Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl script Automation

Status
Not open for further replies.

Nova980

Technical User
May 20, 2009
40
US
How can I start two jobs simultaneously using a batch file? For example...

Batch file includes:

Code:
D:
perl script.pl
perl script2.pl

How can I start these two scripts at the same time?

Thank you.
 
Hi

Code:
perl script.pl [red]&[/red]
perl script2.pl
While you specified no operating system, I suppose it is Unix or Unix-like with [tt]sh[/tt] compatible shell.


Feherke.
 
Actually it's windows. This only starts the first script :(
 
use the "start" command to start them in their own space.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
That's ok, I just used a vb script.
Code:
dim oShell
Set oShell=WScript.CreateObject("WScript.Shell")

oShell.Run "us.bat",1,false
wscript.sleep 20000
oShell.Run "schedulerrun.bat",1,false

It starts up my job a few minutes prior to my first job.

But thank you for your response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top