php - How to "hack" GNU screen to be able of being executed without a tty? -


i need able of running gnu screen using php since panel works php. if there's isn't way, there alternative allows me send commands screen?

like @ screen: screen -s 9274 -p 0 -x stuff '(command here)'\015?

thanks.

you can use nohup command designed such operations:

nohup - run command immune hangups, output non-tty

you can start screen in detached mode -d -m parameters:

-d -m start screen in "detached" mode. creates new session doesn't attach it. useful system startup scripts.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -