develooper Front page | perl.beginners | Postings from February 2002

Re: testing for a dir

Thread Previous
Jason Purdy
February 1, 2002 07:28
Re: testing for a dir
Message ID:
Well, I'm not sure about rsh, but with ssh:

ssh "perl -e 'print ( (-d \"data\") ? \"DIR\n\" : \"Not 
DIR\n\" );'"

Change "data" to whatever your dirname is...


If memory serves me right, on Friday 01 February 2002 10:18, Alex Harris 
> What is the best way, using rsh, to test if a directory exists on another
> server?
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About