The intention of my script is to automate several runs of a program.  It works 
fine. I added nice -20 to it to put it in the background, and it works fine.  
I added nohup to keep the command going during a logout (these can take many 
hours), and during the tests, it said, "outputing to nohup.out"  (Should I 
nohup the perl script?)  After the test, the program had worked normally, and 
nohup.out was empty.  In addition, I added print statements before and after 
the system command to monitor progress, but they were not printed until the 
very end (i.e. 4 runs of the program).  Here is the for loop containing the 
main code sample:

for ($loop = 0; $loop < $opt_m; $loop++) {
 @sander_input = ("nice", "-20", "nohup", "sander", "-O" etc.); # lots of 
flags here
 $job = $loop + 1;
 print "starting job $job";
 system(@sander_input);
 print "finished job $job";
}

Thanks much.

Neema Salimi
[EMAIL PROTECTED]

Reply via email to