Jump to content

[SOLVED] Running a process without waiting till it's finished (linux)


tibberous

Recommended Posts

I am trying to run a script and not have my program wait until it is done.

 

I tried:

 

exec("php script.php $_ > /dev/null/ &")

 

And it works, but it keeps printing "sh: /dev/null/: Is a directory".

 

I DON'T CARE THAT IT IS A DIRECTORY!

 

I tried: @exec("php script.php $_ > /dev/null/ &") and @exec("php script.php $_ > /dev/null/ &", $_, $__), those don't work either.

 

Does anyone know how to do this, or why it keeps saying "sh: /dev/null/: Is a directory"?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.