noshell problem

Chris Williams chris.williams@REDACTED
Mon Aug 28 13:31:16 CEST 2000


Hi,
The noshell option will still give printouts in a shell but you will
not be able to write to it

A better option it to start the system in "embedded mode" with the
command
run_erl
eg. $BINDIR/run_erl $PIPEDIR $LOGDIR "exec $BINDIR/erlexec \
                                        -boot $RELDIR/start \
                                        -s session start"> /dev/null
2>&1 &

Where:
PIPEDIR="/tmp/" or where you want
BINDIR="/tmp/" or where you want

This will run the your system in the background.
//Chris
============================================================================
Christopher Williams            Phone:    +353 902 31365 
Ericsson Systems 		ECN:	  8301365
Expertise Limited,		Mob:	  +353 87 64 888 04
Athlone,                        Fax:      +353 902 31304
Co.Westmeath,		        http://www.eei.ericsson.se/~eeiaxm3
Ireland            		chris.williams@REDACTED
============================================================================


Mickael Remond wrote:
> 
> Hi,
> 
> I ma trying to launch an Erlang program in background so that I can close the
> terminal and let the server keep on working.
> 
> But I encounter some problem with this feature.
> 
> Here is what I am doing:
> 
> I am launching my Erlang server :
> 
>   erl -noshell -s sessions start &
> 
>  => The programm reach the state stopped and seem to wait for input data.
> 
> I also tried to launch my program with -noinput option, but the program
> also reach the stopped state.
> 
> How do you launch your Erlang programm so that they run in the background (and
> so that you can close you terminal) ?
> 
> Thank you in advance for your help.
> 
> --
> Mickaël Rémond

--



More information about the erlang-questions mailing list