Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] deleting a local list of filenames from remote server
- Date: Fri, 5 Dec 2008 10:30:56 +0900
- From: Dave Brown <dagbrown@example.com>
- Subject: Re: [tlug] deleting a local list of filenames from remote server
- References: <4935289F.4090309@jj.em-net.ne.jp> <87hc5mzixs.fsf@uwakimon.sk.tsukuba.ac.jp> <20081205000804.GI7034@lucky.cynic.net>
- User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, Dec 05, 2008 at 09:08:04AM +0900, Curt Sampson wrote: > On 2008-12-03 00:38 +0900 (Wed), Stephen J. Turnbull wrote: > > > ssh user@example.com 'cd public_html/cache && xargs rm < filelist' > > > > should do the trick. (The && is paranoia, just in case the cd fails > > and you have a similar files in your home directory for some reason.) > > Don't count on this; cd returning an error code when it can't change to > the directory is actually a bashism, and most other Bourne-type shells > don't do this. Say what? dagbrown@example.com:~$ uname -a SunOS prov01.unix 5.10 Generic_118844-26 i86pc i386 i86pc Solaris dagbrown@example.com:~$ /bin/sh $ cd /hoogleblats && echo honk /hoogleblats: does not exist $ ^D dagbrown@example.com:~$ /bin/ksh $ cd /hoogleblats && echo honk /bin/ksh: /hoogleblats: not found $ ^D --Dave (I could show you zsh too, but zsh is more bash than bash, so...)
- Follow-Ups:
- Re: [tlug] deleting a local list of filenames from remote server
- From: Curt Sampson
- References:
- [tlug] deleting a local list of filenames from remote server
- From: Charles Muller
- [tlug] deleting a local list of filenames from remote server
- From: Stephen J. Turnbull
- Re: [tlug] deleting a local list of filenames from remote server
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] deleting a local list of filenames from remote server
- Next by Date: [tlug] Recommendations on ISDN Cards for a SIP server
- Previous by thread: Re: [tlug] deleting a local list of filenames from remote server
- Next by thread: Re: [tlug] deleting a local list of filenames from remote server
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links