Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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!

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    i'd create a script called /tmp/start-prog.sh and in it put:
    Code:
    mono McMyAdmin.exe
    make it executable:
    Code:
    chmod +x /tmp/start-prog.sh
    then call it a la:
    Code:
    screen -S minecraft -d -m /tmp/start-prog.sh

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    yeah exactly what I was looking for thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •