Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

How to run a prog even after terminal closes

$
0
0

Hi

I compiled a program using the IoT dev kit. I copied the binary and started it using ssh.

However the moment I disconnect the shh/terminal the program is killed.

 

I'm not a linux person so i'm not sure how to make sure a program runs without being killed by patent terminal

 

I have already tried the following and none worked

1. nohup ./myprog &

2. (nohup ./myprog) &

3. ((exec ./noprog) &)

4. I also tried fork inside my main for the program

 

How does the arduino sketch  accomplish this?

thanks

Gowri


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>