source: trunk/athena/bin/newpag/newpag.c @ 1617

Revision 1617, 312 bytes checked in by wesommer, 36 years ago (diff)
Initial revision
Line 
1#include <stdio.h>
2       
3main(argc, argv)
4        int argc;
5        char **argv;
6{
7        extern char *getenv();
8        char *shell = getenv("SHELL");
9        int code = setpag();
10        if (code != 0) {
11                perror("setpag");
12                exit(1);
13        }
14        if (argc == 1)
15                execl (shell != NULL ? shell : "/bin/sh", "sh", 0);
16        else
17                execvp (argv[1], argv+1);
18        exit(1);
19}
Note: See TracBrowser for help on using the repository browser.