Hello!

I've got a script that runs for most of the day in a screen on my centOS linux box, however I'd like a way to be able to stop and start this with a button within my panel (php).

I've read about shell exec however I've not been able to get this to work? What's the best way to do this?

Any help appreciated.

Member Avatar for P0lT10n

What tipe of script ? PHP script ?

If not, you should use EXEC, like these exec ("C:/WINNT/System32/Calc.exe"); (I know that is Linux, this is an axample).

commented: check the forum in which u r posting -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.