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!

2 instances of perl

Status
Not open for further replies.

oinkers

Programmer
Jun 14, 2000
23
US
I am having trouble running 2 perl programs at the same time. I think perl does not allocate separate memory spaces for each instance of perl. My program gets all messed up when i try to run 2 perl programs at the same time. Does any1 have a way aroudn this problem?
 
What OS?&nbsp;&nbsp;Any UNIX variant and WinNT or Win2K should run as many as you could concievably want.&nbsp;&nbsp;I'm not clear on how the Win OSs do it, but any Unix variant will spawn a new process for each new program......even if it is the same program multiple times (provided there is nothing in the programs themselves to prevent such).<br><br>to illustrate:<br>You should be able to save the following snippet into two files.&nbsp;&nbsp;Start one, while it is running/waiting, start/run the other.&nbsp;&nbsp;<br><FONT FACE=monospace><br>#!perl<br>print &quot;Waiting&quot;;<br>&lt;STDIN&gt;;<br></font> <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top