You may have to put it in a shell wrapper using nohup and
putting it in background. The telnet session sends a HUP signal on disconnect
and this is killing your server. You can also put the shell script in the boot
startup directory with start/stop args then write your cgi to execute the script
with a stop or start directive.
----- Original Message -----
Sent: Monday, August 28, 2000 4:13
PM
Subject: [REBOL] Creating Servers in
Rebol on Linux Re:
> How do I make the thing run resident so I can start or
stop it via remote cgi? > > Right now, I must telnet in and run
manually, if I close telnet client, > server shuts down.
When
you start your script, you should detach it from the console so that when
you log out the process continues running:
The following runs a REBOL
script in the background (&) and redirects stdout and stderr to the
null device (1> /dev/null 2> /dev/null) so no output remains
directed at the console.
%./fakenews.r & 1> /dev/null 2>
/dev/null
Try that and see if it solves your problem.
Best
regards, Kev
------------------------------------------------------------------------ Kevin
McKinnon, System/Network Administrator [EMAIL PROTECTED] Sunshine
Communications
http://www.sunshinecable.com
PGP
Public Key: http://www.dockmaster.net/pgp.html
PGP 6.0 www.pgp.com
|