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

Re: testing for a dir

Thread Previous
From:
Jason Purdy
Date:
February 1, 2002 07:28
Subject:
Re: testing for a dir
Message ID:
02020110281903.07264@jason.journalistic.com
Well, I'm not sure about rsh, but with ssh:

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

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

Jason

If memory serves me right, on Friday 01 February 2002 10:18, Alex Harris 
wrote:
> 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:
> http://photos.msn.com/support/worldwide.aspx

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About