Berkeley CSUA MOTD:Entry 12611
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/07 [General] UID:1000 Activity:popular
4/7     

2004/3/10 [Computer/SW/Unix] UID:12611 Activity:nil
3/10    Anybody know how to split a stream between a program and it's children?
        E.G.:
                ->echo "cat\nRepeat this please." | tcsh
                Repeat: Command not found.
        -darin
        \_ your example doesn't work for a number of reasons. maybe if you
           give us an example of exactly what you want to do this for, we
           could be more helpful.
                \_ I'd like an AIM bot to function like a shell, in order to
                introduce young kids (who chat alot) to unix.  See
                http://slashdot.org/article.pl?sid=04/03/09/1254211&mode=thread
                and
                http://hipme.com/software/bot
                -darin
                   \_ for a single command, you can use
                      tcsh -c "echo Repeat this please."
                      I assume you meant echo rather than cat.
                        \_ No, I really did mean cat.  I want the AIM bot
                           switch context into functioning like cat when
                           issued to message/command "cat".
                           \_ oh i see. then your script and tcsh need to
                              share a pipe. you can't do it with echo
                              because once it sends out what it's supposed
                              to, tcsh will read EOF and quit.
                \_ CoolDude69> Hi Mr. Unix  A/S/L
                   Mr. Unix> zsh: command not found: Hi
        \_ expect is made for stuff like this
                \_ I think that's what I wanted.  Thanks!
                   \_ also, man chroot.
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/04/07 [General] UID:1000 Activity:popular
4/7     

You may also be interested in these entries...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/9/20-11/7 [Computer/SW/Unix, Finance/Investment] UID:54482 Activity:nil
9/20    How do I change my shell? chsh says "Cannot change ID to root."
        \_ /usr/bin/chsh does not have the SUID permission set. Without
           being set, it does not successfully change a user's shell.
           Typical newbie sys admin (on soda)
           \_ Actually, it does: -rwsr-xr-x 1 root root 37552 Feb 15  2011 /usr/bin/chsh
	...
2012/9/24-11/7 [Computer/SW/Languages, Computer/SW/Unix] UID:54484 Activity:nil
9/24    How come changing my shell using ldapmodify (chsh doesn't work) doesn't
        work either? ldapsearch and getent show the new shell but I still get
        the old shell on login.
        \_ Scratch that, it magically took my new shell now. WTF?
           \_ probably nscd(8)
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2011/3/12-4/20 [Consumer/CellPhone, Computer/HW/Laptop] UID:54057 Activity:nil
3/12    I am curious what others think of tablets like iPad. They don't seem
        useful to me, but I use my computer for more than web browsing,
        Facebook, and Twitter. Why would I buy one instead of a laptop?
        They seem like a disabled laptop to me, but at a higher price.
        \_ You are most likely a coder.  iPad is not for coders.  They are
           what you get your non-technical friends.  Or musicians.  Look at
	...
Cache (8192 bytes)
slashdot.org/article.pl?sid=04/03/09/1254211&mode=thread
When you type help it pops up a nice ncurses screen of all the different commands available on linux systems, briefly what they do and a link that can take them to a simplified, easy to read page of advanced things to do with the command. Parent Re:The help command by j2brown Score:1 Tuesday March 09, 09:42AM Re:The help command by Mixel Score:1 Tuesday March 09, 09:56AM Re:The help command by mwing Score:3 Tuesday March 09, 09:56AM 2 replies beneath your current threshold. Re:The help command Score:4, Funny by Skinny Rav 181822 on Tuesday March 09, 09:57AM 8509085 What Linux needs is a MS-DOS 6 style help command. When you type help it pops up a nice ncurses screen of all the different commands available on linux systems, briefly what they do and a link that can take them to a simplified, easy to read page of advanced things to do with the command. Theres no reference or link to the rmdir command Theres no warning about destructive behavior rm -r etc Of course, it tells you to lookup an info page Now, thats just for a simple example. Imagine a newbie scratching his head while looking at the man page for complex command like grep or find. Basically the man system is only useful if you already know 95 of what the man page is trying to tell you - and even there it falls down as a reference work because all the real information is in the info system. Im pointing this out because a lot of times Unix Oldtimers point new users to the man system even on this thread, probably without realizing exactly how horrid it is on a GNU/Linux system. It is not at all accessible to newbies, and probably should just be chucked in its current form. Re:The help command by Trejkaz Score:2 Tuesday March 09, 08:58PM Re:The help command by Tiro Score:1 Wednesday March 10, 04:11AM 3 replies beneath your current threshold. The wealth of information in a decent man page is like a revelation from heaven to one who has had to make sense of DOS HELP, but a single massive spew of everything known about some complex program is a little overwhelming even with an outstanding pager to help. VMS HELP documents are hierarchial and are usually chunked fairly nicely. Where VMS HELP falls down is in full-text searching, though that may have been improved since they took my VMS boxes away. Re:The help command by Espectr0 Score:3 Tuesday March 09, 01:48PM 2 replies beneath your current threshold. Re:The help command by iabervon Score:2 Tuesday March 09, 08:55PM Re:The help command by ghakko Score:2 Wednesday March 10, 03:37AM 1 reply beneath your current threshold. Re:The help command by the_duke_of_hazzard Score:3 Tuesday March 09, 01:24PM Re:The help command by Wormholio Score:2 Tuesday March 09, 01:25PM Re:The help command by mlush Score:1 Tuesday March 09, 04:57PM 1 reply beneath your current threshold. Re:The help command by Tribbin Score:1 Tuesday March 09, 09:23AM Re:The help command Score:5, Funny by Moderation abuser 184013 on Tuesday March 09, 09:47AM 8508993 Apropos? Re:Only on Slashdot by Anonymous Coward Score:1 Tuesday March 09, 03:17PM Re:Only on Slashdot by Mad Marlin Score:2 Tuesday March 09, 03:54PM Re:Only on Slashdot by Skorpion Score:1 Wednesday March 10, 07:45AM Re:Only on Slashdot by next1 Score:1 Tuesday March 09, 07:43PM 1 reply beneath your current threshold. Re:The help command by PowerBert Score:1 Tuesday March 09, 09:24AM Re:The help command Score:5, Funny by oingoboingo 179159 on Tuesday March 09, 09:30AM 8508870 And itd probably be double that if you incorporated some kind of search facility too. Type in help disk space and get a hit on the df command, for instance. How about a little animated bash$ command prompt which jumps up when you hit F1, or which politely asks It looks like youre composing a shell script. Dilbert jokingly tells the PHB that in order to get more customers they should start a massive spamming campaign. When Dilbert goes home, Dogbert says You look like someone who was just put in charge of his own sarcastic suggestion. Parent Re:The help command Score:5, Funny by seanmeister 156224 on Tuesday March 09, 10:05AM 8509150 even just a sign for those wanting to get on with the job. Parent Re:The help command by frodo from middle ea Score:3 Tuesday March 09, 10:42AM Re:The help command by gnu-generation-one Score:1 Tuesday March 09, 04:18PM Re:The help command by srinivas_rc Score:1 Tuesday March 09, 09:35PM 1 reply beneath your current threshold. Re:The help command Score:5, Insightful by HidingMyName 669183 on Tuesday March 09, 09:35AM 8508907 I suspect that new users find Unix/Linux challenging due to historical reasons. Two problems that stick out are command naming conventions and command output. It is an unfortunate artifact of Unix history that some of the commands are poorly named. The Help command did exist in Unix, but it was the help system for sccs too bad there wasnt sccs -help or some such convention instead. There are a few other pet peeves of mine, grep might be better named search, etc. For example when we grep on a file and dont find the pattern, grep does not generate any output. From a programmer point of view that is definitely the right thing especially since these commands are used as filters in a pipelined fashion, however, from a user centric point of view there may be an expectation of a report that the pattern was not found. Im pretty used to the Unix/Linux way of doing things, but new users are not. After the initial horror at what I had done wore off, my younger brother and sister got used to the new system. Four months later I discovered they were both making extensive use of the command line. By the time I moved out I had my mother using pine over ssh to read her email. Most of the trouble of Linux is the inertia related to not wanting to learn new things and not being technically difficult. Parent Re:The help command by Nurseman Score:2 Tuesday March 09, 10:34AM Re:The help command Score:5, Interesting by A nonymous Coward 7548 on Tuesday March 09, 10:44AM 8509534 I loaded Linux on a Windows 31 machine for my kids to get mail had a domain name so they could all have their own mail accounts and login; Re:The help command Score:5, Funny by JavaLord 680960 on Tuesday March 09, 01:43PM 8511084 By the time I moved out I had my mother using pine over ssh to read her email. Most of the trouble of Linux is the inertia related to not wanting to learn new things and not being technically difficult. When I was in high school I used to visit my grandmother in a nursing home all the time. She didnt know how to use Windows or E-Mail so I just gave her an old linux box. Re:The help command by jsebrech Score:2 Tuesday March 09, 03:48PM 1 reply beneath your current threshold. Re:The help command Score:5, Interesting by Anonymous Coward on Tuesday March 09, 10:11AM 8509203 > Command output is problematic since users often expect feedback. For > example when we grep on a file and dont find the pattern, grep does not > generate any output. Stdidiot is where you tell the user verbose output of what you are doing including positive affirmation! Of course one should be able to setenv STDIDIOT/dev/null to turn that off. Moreover, maybe you re-direct it into a pipe that a consolish app could tail? Then a little ticker window on the desktop closes the loop for those needing positive responses? Ive been living in Unix for more than a dozen years and most of the time I like the tell me about it iff there are problems philosophy, but a centralized ticker might occasionally be handy. As a first cut one could basically write a layer that takes the stuff spewed forth by most utilities when -verbose is kicked in and peel it out to stdidiot. If -verbose is thrown on the cmd line, then stdidiot is echoed to stdout too. Re:The help command Score:5, Insightful by zymurgy_cat 627260 on Tuesday March 09, 09:38AM 8508933 Id wager that computer literacy amongst people whove tried Linux would be twice what it is today if when you typed help foobar bash would perform a man foobar if foobar wasnt a builtin command. And itd probably be double that if you incorporated some kind of search facility too. Type in help disk space and get a hit on th...
Cache (493 bytes)
hipme.com/software/bot -> hipme.com/software/bot/
AIM Shell Bot This is an AIM bot that accepts AIM messages from people in its buddy list and executes them as shell commands. It will not work with anything that expects input. It requires Python 22, which is what the Py-TOC library uses. Py-TOC library Disclaimer : If you use this on a secure or important server, youre nuts. Adapt and secure to meet your needs. Danger and hiptop are trademarks and/or service marks of Danger, Inc. T-MOBILE is a registered trademark of Deutsche Telekom AG.