Path: utzoo!utgpu!watmath!uunet!cs.utexas.edu!sun-barr!rutgers!att!icus!lenny From: lenny@icus.islp.ny.us (Lenny Tropiano) Newsgroups: unix-pc.general Subject: Re: Setpgrp source Summary: Here it 'tis in all its glory (or should that be gory)... Message-ID: <922@icus.islp.ny.us> Date: 20 Jul 89 02:54:32 GMT References: <2234@itivax.iti.org> Reply-To: lenny@icus.islp.ny.us (Lenny Tropiano) Distribution: unix-pc Organization: ICUS Software Systems, Islip, New York Lines: 35 In article <2234@itivax.iti.org> scs@itivax.iti.org (Steve C. Simmons) writes: |>I recently got a trailblazer to play with, and unpacked an old posting |>of HDB access stuff (from Lenny? Don't have it here at work..). It |>refers to a command setpgrp in the crontab entries. I've looked thru |>the archives and haven't found it. Can someone point me in the right |>direction? |>-- |>Steve Simmons scs@vax3.iti.org |>Industrial Technology Institute Ann Arbor, MI. |>"Velveeta -- the Spam of Cheeses!" -- Uncle Bonsai Here it 'tis ... Not too bad, huh? ;-) -- cut here -- #include main(argc,argv,envp) int argc; char *argv[], *envp[]; { if (argc < 2) { fprintf(stderr,"Usage: %s program [argv ... ]\n", argv[0]); exit(1); } setpgrp(0); execvp(argv[1], &(argv[1])); perror(argv[0]); } -- Lenny Tropiano ICUS Software Systems [w] +1 (516) 589-7930 lenny@icus.islp.ny.us Telex; 154232428 ICUS [h] +1 (516) 968-8576 {ames,talcott,decuac,hombre,pacbell,sbcs}!icus!lenny attmail!icus!lenny ICUS Software Systems -- PO Box 1; Islip Terrace, NY 11752