1: /* nohup */
   2: char    *args[100];
   3: char    string[10000];
   4: 
   5: main(argc, argv)
   6: int argc;
   7: char *argv[];
   8: {
   9:     int i;
  10:     char **argp, *strp, *p;
  11: 
  12:     if(argc < 2) {
  13:         printf("arg count\n");
  14:         exit();
  15:     }
  16:     argc--;
  17:     argv++;
  18:     argp = args;
  19:     strp = string;
  20:     for (i=0; i<9; i++)
  21:         *strp++ = "/usr/bin/"[i];
  22:     for(i=0; i<argc; i++) {
  23:         *argp++ = strp;
  24:         p = *argv++;
  25:         while(*strp++ = *p++);
  26:     }
  27:     *argp = 0;
  28:     signal(1, 1);
  29:     signal(2, 1);
  30:     signal(3, 1);
  31:     execv(string+9, args);
  32:     execv(string+4, args);
  33:     execv(string, args);
  34:     printf("%s not found\n", string+9);
  35: }

Defined functions

main defined in line 5; never used

Defined variables

args defined in line 2; used 4 times
string defined in line 3; used 5 times
Last modified: 1975-05-14
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 561
Valid CSS Valid XHTML 1.0 Strict