[beagleboard] Re: How do I keep a program running after disconnecting from ssh?

2017-01-29 Thread Chris Green
'woody stanford' via BeagleBoard wrote: > > > > I use the BBB to turn on my christmas light using a simple relay circuit. > > I made a simple server in python that listens to post requests, so far it > > works, I also use Microsoft Cognitive Services to send post requests based > > on speech co

[beagleboard] Re: How do I keep a program running after disconnecting from ssh?

2017-01-28 Thread 'woody stanford' via BeagleBoard
There is kind of an involved way in C that is how it is done (similar to how Apache runs as a long-running daemon). What you do is you fork() with the parameters set up such that it invokes a daughter shell process that survives after the parent process is terminated. The reason why the daughte

Re: [beagleboard] Re: How do I keep a program running after disconnecting from ssh?

2016-12-27 Thread William Hermans
Generally, all you need is '&' to send the process to the background. So if I had a Nodejs script called 'app.js' . . . $ node app.js & This would start app.js through node, then send the process into the background. Giving me a PID which I could use later to kill the process. On Tue, Dec 27, 2

[beagleboard] Re: How do I keep a program running after disconnecting from ssh?

2016-12-27 Thread Denis Cosmin
I retried with nohup and it works now. I think I had problems in the sender code. On Tuesday, December 27, 2016 at 7:32:46 PM UTC+2, Denis Cosmin wrote: > > > Hello, > > I use the BBB to turn on my christmas light using a simple relay circuit. > I made a simple server in python that listens to p