Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tips and tricks (was:Re: tlug: CDROM)



Hi all,

When I have to do something more than twice, my brain kicks in
and asks, "Should this be a shell script or alias?" The
mount/unmount commands for both the CDROM and floppy drives
ended up as shell scripts in /sbin. Yeah, it's still a pain to
su to root to run them but it's better than nuttin'.

My .bashrc files just keeps growin' and growin'. here's some of
it: (hope you find something usefull in there and don't be shy
about sharing *your* favorite alias with the group!)

alias cdshp='cd /hdd/webmaster/SHP/'
alias cdtlug='cd /hdd/webmaster/tlug/'
alias ftphare='ncftp www1.harenet.or.jp'
alias ftpamda='ncftp fmv166.amda.or.jp'
alias tchk='tar tzvf'
alias tgz='tar xvzf'
alias lg='logout'
alias pd=pushd
alias pod=popd
alias dr='ls -l | grep "^d"'
alias ll='ls -la | more'
alias  psg='ps -aux | grep  $1'

And don't forget you can automate a lot of stuff like telnet
logins with expect; like this:

schweiz:~/bin$ cat teltlug
#!/usr/bin/expect --

spawn telnet www.twics.com 
expect "login: " 
send "tlug\r"
expect "Password:"
send "****\r"
expect "TERM = (vt100)"
send "\r"
expect "beehive:~$"
interact


Later,

Jim S.
---------------------------------------------------------------
Next TLUG Nomikai: 11 March Wed 1998 Tengu TokyoEkiMae 19:30
Chuo-ku, Kyobashi 1-1-6, EchiZenYa Bld. B1/B2 03-3275-3691
Next TLUG Meeting: 11 April 1998 Saturday, Tokyo Station
Featuring Tague Griffith of Netscape i18n talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links