dos batch script

We need to write a dos batch script that does following in order numbered below:

Connect to all UNIX boxes using IP,userid and password from a file.
validate if login was successful
check if there is at least 30mb disk space in the home folder of the user
Check if there are any processes in SLEEP state, started by the user used to login.
Kill the processes listed in the step 4
generate a summary page - Pass/Failed depending on the action in the particular step.

I need to write a dos batch script that does following in order numbered below:

Connect to all UNIX boxes using IP,userid and password from a file.
validate if login was successful
check if there is at least 30mb disk space in the home folder of the user
Check if there are any processes in SLEEP state, started by the user used to login.
Kill the processes listed in the step 4
generate a summary page - Pass/Failed depending on the action in the particular step.

It's urgent..pls

We need to write a dos batch script that does following in order numbered below:

Connect to all UNIX boxes using IP,userid and password from a file.
validate if login was successful
check if there is at least 30mb disk space in the home folder of the user
Check if there are any processes in SLEEP state, started by the user used to login.
Kill the processes listed in the step 4
generate a summary page - Pass/Failed depending on the action in the particular step.

Moderators this thread needs to be closed because of the duplicate postings.

chandraachii, please do not create multiple threads for the same topic. That is a violation of the rules. I have merged the threads.

Please be patient.

Hi chandraachii,

There is no simple way of doing what you want from a DOS batch script.

It will be significantly easier for you to install a more powerfull command line interpreter (say bash) and script it up from there. Cygwin might be a good bet for this as it will also provide a full environment including binaries such as ssh for connecting to your hosts.

Hope this helps,

Craig