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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to