Hi.
Trying to run multiple copies of a test as a background process.
I can easily cut/copy/paste the test cmd in the shell, and a check of the procTBL shows the instances are all running.
However, if I do the same thing, and put it in a test shell script, when I run it, I don't get any of the instances running...
I'm flumoxed!
any thoughts on what I've screwed up/forgotten.
are there system err logs I might check to see what the issue might be??
thanks
!#/bin/sh ## #
#start the new instance of the app
sleep 5 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 1 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2
/ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null &
exit
update...
really weird...
i know run: /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null &
from the cmdline, and the test doesn't run in the background.. it runs as a current/foreground process...
thoughts??
thanks
On Thu, Jun 12, 2014 at 9:04 AM, bruce badouglas@gmail.com wrote:
Hi.
Trying to run multiple copies of a test as a background process.
I can easily cut/copy/paste the test cmd in the shell, and a check of the procTBL shows the instances are all running.
However, if I do the same thing, and put it in a test shell script, when I run it, I don't get any of the instances running...
I'm flumoxed!
any thoughts on what I've screwed up/forgotten.
are there system err logs I might check to see what the issue might be??
thanks
!#/bin/sh ## #
#start the new instance of the app
sleep 5 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 1 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2
/ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null & #sleep 2 /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null &
exit
On 06/12/14 08:14, bruce wrote:
update...
really weird...
i know run: /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null &
from the cmdline, and the test doesn't run in the background.. it runs as a current/foreground process...
thoughts??
just one thing i notice. do not know if it is cause of problem.
<<>>
!#/bin/sh
when i write a script, i use;
#!/bin/sh
yes/no/maybe/could be??
On 12Jun2014 09:14, bruce badouglas@gmail.com wrote:
update...
really weird...
i know run: /ycrawl/dcrawl/run/yolo-master/YoloMasterGearmanQueueProcessAppDir/rateStateCollegeProcessy2.php < /dev/null &
from the cmdline, and the test doesn't run in the background.. it runs as a current/foreground process...
Is that really split across two lines? The "<" and "&" need to be on the same line.
Cameron Simpson cs@zip.com.au
"If you could have any amount of money... How much would you want?" "All of it." - Cerebus the Aardvark