Help for this page

Select Code to Download


  1. or download this
    #define REAL_PATH "/path/to/script"
    main(ac, av)
    ...
    {
        execv(REAL_PATH, av);
    }
    
  2. or download this
    #include <unistd.h> /* for execv() */
    #include <stdio.h> /* for perror() */
    ...
        perror("Can't execute main script");
        return 126;
    }