[beagleboard] Re: How to Formally Invoke a "Background Process" in C on a BBW

2017-03-09 Thread 'woody stanford' via BeagleBoard
OK, in summary, what is the MAGIC piece of code here...the crux...the essence: *** * BOOKMARK THIS ** *** [code] if ((ppid=fork())==0) { printf("Child process\n"); execlp("bash","bash","./ecurl.

[beagleboard] Re: How to Formally Invoke a "Background Process" in C on a BBW

2017-03-02 Thread 'woody stanford' via BeagleBoard
Here is another powerful example of how a correctly set up background process can fetch a web page for you. Using URL_encode() you can even invoke specific scripts on a remote host via HTTP and HTTPS protocol using CURL (available on stock Angstrom but remember to connect it to the inet). [cod

[beagleboard] Re: How to Formally Invoke a "Background Process" in C on a BBW

2017-03-02 Thread 'woody stanford' via BeagleBoard
ok, here is a good example of how you can run a BBB-specific shell script with the DAEMON1 code examples. It reads back to you the current configurations for pins on the P8/9 headers. Its not just a cat of a config file but saves to a text file AND is entirely available in a C program. You can