G
gbostock
I'm experiencing some strange behavior with a certain perl program
when trying to run it as a unix background process. This process runs
with no problems at the terminal.
When I do:
(prompt)$myperl.pl &
The process starts running, output comes to the terminal but the
prompt doesn't come back. If there is any input at the terminal a
message appears saying that the process has stopped.
If I do:
(prompt)$ nohup myperl.pl &
the same thing happens
If I do:
(prompt)$myother.pl &
then I get the prompt back and the process runs in the background just
fine and continues when I use the terminal as usual.
So the question is: Does anybody have any idea what could be in the
myperl.pl that could prevent it from running in the background?
Please don't ask me to post the code as it is proprietary. If you need
to see the code you're probably just guessing at what could be the
problem anyway. There is a huge difference between myperl.pl and
myother.pl so it's not just a matter of spotting the diference. I'm
just hoping that some one has seen this sort of thing before and knows
what causes it.I'm not new to perl or unix and I've never seen
anything like this. What could be in the perl code to prevent it from
running in the background?
when trying to run it as a unix background process. This process runs
with no problems at the terminal.
When I do:
(prompt)$myperl.pl &
The process starts running, output comes to the terminal but the
prompt doesn't come back. If there is any input at the terminal a
message appears saying that the process has stopped.
If I do:
(prompt)$ nohup myperl.pl &
the same thing happens
If I do:
(prompt)$myother.pl &
then I get the prompt back and the process runs in the background just
fine and continues when I use the terminal as usual.
So the question is: Does anybody have any idea what could be in the
myperl.pl that could prevent it from running in the background?
Please don't ask me to post the code as it is proprietary. If you need
to see the code you're probably just guessing at what could be the
problem anyway. There is a huge difference between myperl.pl and
myother.pl so it's not just a matter of spotting the diference. I'm
just hoping that some one has seen this sort of thing before and knows
what causes it.I'm not new to perl or unix and I've never seen
anything like this. What could be in the perl code to prevent it from
running in the background?