Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]tips and tricks (was:Re: tlug: CDROM)
- To: tlug@example.com
- Subject: tips and tricks (was:Re: tlug: CDROM)
- From: Jim Schweizer <schweiz@example.com>
- Date: Mon, 02 Mar 1998 16:44:55 +0900 (JST)
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <Pine.LNX.3.95.980301221555.23941A-100000@example.com>
- Organization: JPS Solutions
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
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
- Follow-Ups:
- Re: tips and tricks (was:Re: tlug: CDROM)
- From: Scott Stone <sstone@example.com>
- Re: tips and tricks (was:Re: tlug: CDROM)
- From: Jim Tittsler <jwt-tlug@example.com>
- Re: tips and tricks (was:Re: tlug: CDROM)
- From: Manuel Chakravarty <chak@example.com>
- References:
- Re: tlug: CDROM
- From: "Marc E. Christensen" <marc@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: Server Name?
- Next by Date: Re: tips and tricks (was:Re: tlug: CDROM)
- Prev by thread: 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