Hi All,
We have a batch script listener_cntrl.bat which calls two commands "lstnr_cntrl and pause".
I am running listner_cntrl.bat on a target server with command 'cmd /c "C:\Operations\listener_cntrl.bat"'.
Since the pause/b] prompts for "Press any key to continue" and user intervention is required and because of this my automation of running the batch file is failing.
Is there any way i can skip [b]Pause inside the batch script or anyother way to pass a switch along with my command for "Press any key to continue"
Note: I cannot edit the batch script since it is on remote server and i don't have remote access to server.
I am using remote command execution function to execute the script.
Any help is appreciated.
Thanks and Regards
Riyas
how to skip a command in batch script
Moderator: DosItHelp
Re: how to skip a command in batch script
you can try this (works here)
Code: Select all
<nul listener_cntrl.bat
Re: how to skip a command in batch script
I am confused on how you can run the batch file if you don't have access to the server. If you can remotely execute it you should be able to remotely edit it.
Re: how to skip a command in batch script
Endoro wrote:you can try this (works here)Code: Select all
<nul listener_cntrl.bat
That's a good solution - it can be rewritten for the example command as such:
Code: Select all
cmd /c "C:\Operations\listener_cntrl.b<nul"
-
- Posts: 2
- Joined: 06 May 2013 11:18
Re: how to skip a command in batch script
Hi Squashman,
These are all customer production servers and have access only to run the script not to edit the script.
Hope this clears your confusion. If we try to edit the script and customer finds that then our project is screwed.
Also, we are running this script on more than 500 servers.
Regards
Riyas
These are all customer production servers and have access only to run the script not to edit the script.
Hope this clears your confusion. If we try to edit the script and customer finds that then our project is screwed.
Also, we are running this script on more than 500 servers.
Regards
Riyas