Setpgrp source
Lenny Tropiano
lenny at icus.islp.ny.us
Thu Jul 20 12:54:32 AEST 1989
In article <2234 at itivax.iti.org> scs at 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 at 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 <stdio.h>
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 at 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
More information about the Unix-pc.general
mailing list