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

2000/4/12-16 [Politics/Domestic/California, Computer/SW/Unix] UID:17986 Activity:kinda low
4/12    screen-3.9.5 installed as screen.new -- it's not compatible with the
        old version, so I won't install it as screen until all the old screen
        processes are dead.  There's a list of new features (including split-
        screen support) in /csua/tmp/screen-3.9.5+idle/NEWS.  --mconst
        \_ what escape key combination have any of you found to conflict
           the least with existing programs?  C-a seems to be used quite
           often.  Also, is there a way to make the new shell start with the
           same terminal type as the shell that invoked screen (it always
           thinks the terminal type is screen, but I'd like it to be vt100
           or xterm, whichever one I started screen with).
           \_ I use CNTRL-D: alias screen="screen -e^Dd". For the term
              type I think that it is -T <type>. Just use a function:
              screen () {
                if [ -z "$TERM" ] ; then TERM=vt100 ; fi
                /usr/bin/screen -e^Dd -T "$TERM" "$@"
              }
              \_ Wow..  this person has scary ways of doing things that
                 will tend to break.  Please don't listen to them.  Use ^O.
                 Set it in your .screenrc.  Set your term to vt100 in your
                 .screenrc.   You'll be happy.
                 \_ What's wrong with Control-D? It prevents you from
                    accidentally logging out as a side effect. I prefer
                    xterm to vt100 since meta works correctly for
                    emacs -nw when term is set to vt100. Yes I mostly
                    use xterms.
                        \_ How do you wall???
                                \_ Did someone mention
                                   useless functionality? ;-)
                           \_ I never wall. On the boxes I admin, I
                              just kill everyone's processess
                              and then sync x 3 and init 5 (or 6) to
                              reboot.
                 \_ Hm, I use ^D as delete in emacs.  And ^O for various
                    other things in pine.  Any other suggestions?
                    \_ use a better mail reader
                    \_ emacs uses every key that exists and a few that don't
           \_ I use ^o ... other than it being oflush in telnet, it's
              unused. -geordan
           \_ I use the spacebar.  Since I'm only using the mouse for almost
              everything, this rarely conflicts.
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
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/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
	...
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
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/8/21-9/1 [Computer/SW/Unix] UID:53297 Activity:nil
8/20    When I use rsync to backup, it's pretty cool except in cases where
        I rename a directory name from the source. Rsync will just do
        a plain copy. Is there a program that'll detect renaming of
        directories (by checking for children files), or at least
        move them to a dated directory?
        \_ Not related but beware of using rsync as a backup tool.
	...