Results 1 to 3 of 3
Hi, I want to be able to send via a php page command to my server. The problem is that I need to send a command in screen.
screen -r ...
- 10-07-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 4
Using php to send command
Hi, I want to be able to send via a php page command to my server. The problem is that I need to send a command in screen.
screen -r minecraft
(in screen) mono McMyAdmin.exe
How can I do that?
thanks!
- 10-07-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
i'd create a script called /tmp/start-prog.sh and in it put:
make it executable:Code:mono McMyAdmin.exe
then call it a la:Code:chmod +x /tmp/start-prog.sh
Code:screen -S minecraft -d -m /tmp/start-prog.sh
- 10-07-2011 #3Just Joined!
- Join Date
- Oct 2011
- Posts
- 4
yeah exactly what I was looking for thanks!


Reply With Quote