Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: bash newbie question

From: jeff:rebol at: 3-Nov-2001 22:28

Howdy, Graham:
> > Options: 1) /path/to/rebol ./game-server.r & 2) nohup > > /path/to/rebol ./game-server.r > > those didn't work > > > 3) or if those don't work, try using screen. > > > > Er, what's that?
The super nifty unix console 'window-manager'. If it's installed for the server it's pretty useful for leaving resident processes. Try typing 'screen' and see if you get presented with a new shell. If so: Run your script as normal. After it's running hit the sequence: Control-a d That should "detach" the screen session. You can later rejoin that session by typing: 'screen -r'. That's handy to be able to come by and tweak the running script, view output, etc. You can log out after detaching the session and it will keep running. You can start a process in screen and immediatly detach it as follows: screen -m -d -S NameOfSession /path/to/script (Make the script executable with '#!/path/to/rebol -flags' at top). -m -d together make it immediately detach after starting the process. -S allows you to name the session so you can rejoin the session by name later (useful if you have more that one screen session detached). Screen has many other abilities, including running multiple windows (shells) within a session, keeping logs of activity on the different windows, copying and pasting between them, and more. Check the man page. But if it's not installed, beg the sysop for it. (-: -jeff