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). [code] #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <sys/types.h> #include <sys/wait.h> #include <dirent.h> main() { int ppid; int status; FILE *fptr; char c; remove("woody.txt"); printf("Reading the HTML source from Stanford Systems...\n"); fflush(NULL); if ((ppid=fork())==0) { printf("Child process\n"); execlp("bash","bash","./ecurl.sh","",NULL); return; //terminates child process } //does this block? YES! // printf("Parent process %d\n",ppid); wait(&status); fptr=fopen("woody.txt","r"); printf("\n\nSource code of Woody's home page.\n\n"); while(!feof(fptr)) { fread(&c,1,1,fptr); printf("%c",c); } fclose(fptr); } [/code] Again requires a short shell script to do the actual operation. In this case, put the following shell scripting into "ecurl.sh": [code] curl -k http://wodystanford.wordpress.com > ./woody.txt sleep 1 exit [/code] make executable, and compile C portion and execute as in the previous example. On Saturday, February 25, 2017 at 10:44:53 PM UTC-7, woody stanford wrote: > > Here is how you do the background process thing on a Beagle, even stock. > > https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=175567 > > A claim. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/7f5441e7-2d0f-44e2-931e-a4de2b18b388%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.