Jump to content

executing a program?


Jezza

Recommended Posts

That made absolutely no sense to me and just looking at it makes my head hurt, and it also looks like it outputs the result i don't want that, i pretty much want to simulate double clicking on a program, it opens up like that and doesn't wait for the program to finish up before it continues.

Link to comment
https://forums.phpfreaks.com/topic/171733-executing-a-program/#findComment-905647
Share on other sites

If you trying to initialize a server as you siad, you should do it through a startup script. Take a look in your /etc/init.d directory for examples if there isn't already a script written for the server you are starting.

 

Then you would simply....

 

exec('/etc/init.d/nameofservice start');

 

and it will take care of putting the process into the background. Otherwise, the examples I have shown you should work.

Link to comment
https://forums.phpfreaks.com/topic/171733-executing-a-program/#findComment-906250
Share on other sites

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.