dos batch script

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions dos batch script
# 1  
Old 08-01-2007
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.

Last edited by blowtorch; 08-01-2007 at 06:03 AM..
# 2  
Old 08-01-2007
Execute through the dos batch script

Moderators this thread needs to be closed because of the duplicate postings.
# 3  
Old 08-01-2007
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.
# 4  
Old 08-01-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting DOS Batch file to Shell Script

Hi, This is my DOS Batch file. @echo off echo "Program Name :" %0 rem echo "Next param :" %1 echo "Next param :" "Username/Password" echo "User Id :" %2 echo "User Name :" %3 echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies

2. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

3. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

4. UNIX for Dummies Questions & Answers

Unix shell, Dos batch

Is the unix shell script equivalent to dos batch command? Thanks (2 Replies)
Discussion started by: zhshqzyc
2 Replies

5. Shell Programming and Scripting

HowTo translate KSH Scripts to DOS Batch Files ?

Hi there, in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Discussion started by: Joe-K7
4 Replies

6. Windows & DOS: Issues & Discussions

variable in dos batch file

Sir I have a very old cobol programme (source not availble). On execution and invoking some menu commands, depending upon the "pressed menu commands" it is writing certain values into a dos batch file. At the end of cobol file, this batch file gets exeuted. On keying in the Drive from which you... (6 Replies)
Discussion started by: chssastry
6 Replies

7. UNIX for Dummies Questions & Answers

DOS batch file to capture routers log

Hi, Please help to write DOS /Perl script to capture router AAA logs to store in file. RADIUS: id 1, priority 1, host 59.163.6.103, auth-port 1901, acct-port 1902 State: current UP, duration 1928071s, previous duration 0s Dead: total time 2798488914s, count 0 Authen:... (0 Replies)
Discussion started by: patilanna
0 Replies

8. Windows & DOS: Issues & Discussions

dos batch script

Please dont post duplicate threads :confused: (0 Replies)
Discussion started by: lorcan
0 Replies

9. Shell Programming and Scripting

bash shell script and ms-dos

Hi... I need your help..... I would like to create a bash shell script, which it could someway to stimulate the MS DOS to accept and do the most basic commands of MS DOS... (1 Reply)
Discussion started by: space13
1 Replies

10. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies
Login or Register to Ask a Question