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

bash newbie question

 [1/5] from: gchiu::compkarori::co::nz at: 4-Nov-2001 17:17


I've just got an account of xrebol that I want to setup my chat client. I've logged on using openssh client. How do I then start up my script so that it allows me access to the shell again. If I type /path/to/rebol ./game-server.r I want to drop back to shell so that I can then log off but leave the script running. Thanks, -- Graham Chiu

 [2/5] from: deryk:iitowns at: 4-Nov-2001 12:41


On Saturday 03 November 2001 23:17, you wrote:
> I've just got an account of xrebol that I want to setup my > chat client.
<<quoted lines omitted: 5>>
> I want to drop back to shell so that I can then log off but > leave the script running.
Options: 1) /path/to/rebol ./game-server.r & 2) nohup /path/to/rebol ./game-server.r 3) or if those don't work, try using screen. Deryk

 [3/5] from: gchiu:compkarori at: 4-Nov-2001 18:30


Hi Deryk
> 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? xrebol.net is running on a Cobalt Qube .... does that help? Or I could wait for Phil to wake up - must be early hours of the morning in the UK now. -- Graham Chiu

 [4/5] 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

 [5/5] from: gchiu:compkarori at: 4-Nov-2001 22:21


> more. Check the man page. But if it's not installed, > beg the > sysop for it. (-:
Thanks Jeff, I've got my begging bowl out now :) -- Graham Chiu

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted