I'm using a UNIX server (SCO) to RSH into a Windows 2000 workstation... I want to run a script that deletes two directories and then go to the next workstation.
This is what I have now, but if for some reason the file is is use or not responding; the 'script' hangs. I'm wondering if anyone knows of a way to cause the script to timeout and move on to the next wrks...
Here is the script I have... Appreciate the help.
for x in `nt_list`;do echo $x;rsh $x "rm -rf c:\docume~1\level2 c:\docume~1\level3";done
This is what I have now, but if for some reason the file is is use or not responding; the 'script' hangs. I'm wondering if anyone knows of a way to cause the script to timeout and move on to the next wrks...
Here is the script I have... Appreciate the help.
for x in `nt_list`;do echo $x;rsh $x "rm -rf c:\docume~1\level2 c:\docume~1\level3";done