PDA

View Full Version : [ubuntu] Bang! I can't run programmer in the background


rollenc
May 14th, 2008, 05:06 AM
I install Ubuntu in my server.
I found I can't run command in the background.
There is my terminal output:

rollenc@ubuntu:~$ php tmp &
[1] 22639
rollenc@ubuntu:~$

[1]+ Stopped php tmp
rollenc@ubuntu:~$ bg
[1]+ php tmp &

[1]+ Stopped php tmp
rollenc@ubuntu:~$ bg
[1]+ php tmp &

[1]+ Stopped php tmp
rollenc@ubuntu:~$ fg
php tmp
49995000rollenc@ubuntu:~$

I use '&' to run this program in the background, but it stopped, and bg is not my friend yet.

This server is a production server, I don't wanna an OS reinstall.

Thanks for any words.

dmizer
May 14th, 2008, 06:01 AM
my understanding of your problem is limited, but you might be interested in learning about screen: http://jmcpherson.org/screen.html

also, is there something in the logs indicating why php tmp is stopping?

rollenc
May 14th, 2008, 08:42 AM
thanks for your post.

I checked out the /var/log/auth.log and /var/log/syslog, whice is updated after I excute the 'php tmp &', but nothing was found.

which log file I need to notice?

rollenc
May 15th, 2008, 09:27 PM
I found this happened in my Ubuntu 8.04 desktop too.

dmizer
May 15th, 2008, 10:25 PM
does it work at all, for a short time perhaps?

i really don't know exactly what you're trying to do, but maybe the syntax is just wrong?
php /tmp &