Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tips and tricks (was:Re: tlug: CDROM)
- To: tlug@example.com
- Subject: Re: tips and tricks (was:Re: tlug: CDROM)
- From: Scott Stone <sstone@example.com>
- Date: Mon, 2 Mar 1998 17:08:12 +0900 (JST)
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <XFMail.980302165508.schweiz@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
On Mon, 2 Mar 1998, Jim Schweizer wrote: > 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!) If I did stuff like this, I'd end up confusing myself :) - I use a lot of different machines here... :) > > 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 > -------------------------------------------------- Scott M. Stone <sstone@example.com, sstone@example.com> <sstone@example.com> Linux Developer/Systems Administrator for Pacific HiTech, Inc. http://www.pht.com http://armadillo.pht.co.jp http://www.pht.co.jp http://www.turbolinux.com --------------------------------------------------------------- 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
- References:
- tips and tricks (was:Re: tlug: CDROM)
- From: Jim Schweizer <schweiz@example.com>
Home | Main Index | Thread Index
- Prev by Date: tips and tricks (was:Re: tlug: CDROM)
- Next by Date: Re: tips and tricks (was:Re: tlug: CDROM)
- Prev by thread: tips and tricks (was:Re: tlug: CDROM)
- Next by thread: Re: tips and tricks (was:Re: tlug: CDROM)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links