when login starts up the login shell, argv[0] is a '-' followed by the name of the command. for your init program: execle("/bin/csh","-csh",NULL); csh checks this first character to determine whether or not it was started by login. John Owens