Re: http server in ackground

Parker Jones <[email protected]> Thu, 10 Apr 2014 10:04:08 +1200
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
> From: [email protected]
> Date: Wed, 9 Apr 2014 15:59:56 -0400
> To: [email protected]
> Subject: [SWIPL] http server in ackground
> 
> I have a http server, which I want to run forever in iCloud,
> unfortunately terminal is kicked off after period of no activity,
> 
> I tried   swipl -s myServer.pl -g start  -q &
> 
> on my mac and can not reach it from browser, also port shows in issuing  netstat -vatn
> 
> Same on the linux node. Can you please tell me what I do wrong?
> swipl -s myServer.pl -g start  -q  works OK in both cases?

Perhaps the linux command nohup can help.
nohup - run a command immune to hangups, with output to a non-tty

$ nohup swipl ...

 		 	   		  
-------------- next part --------------
HTML attachment scrubbed and removed