Help with running bg processes

Hello,

I have a php script that I run via command line interface(CLI).

I start the script using a command like the following via command line:

Code:
php script.php 1 database&
The script starts fine and does what it's supposed to do.

I see the output of the script on my screen. What it does is basically download a certain file every 10 minutes, parse the data in the file and slot it into a database.

Now how would i get out of that screen *without* ending the process? Nothing seems to work.

As soon as i close the shell, the process seems to end. If i try to hit [enter] a couple of times and quickly squeeze in the word "logout", true enough the bash prompt will disappear *but* the screen remains as it is. I assume that bash is waiting for the php script to finish execution. Problem is, it never will.

Could someone please help me out here? I'm in a fix. :/

Thank you.

 

 

 

 

Top