* What is correct way to exec /bin/csh for interactive mode
@ 1995-03-02 4:03 siegelr
0 siblings, 0 replies; only message in thread
From: siegelr @ 1995-03-02 4:03 UTC (permalink / raw)
To: tru64-unix-managers
We have a program that we use to perform some "housekeeping" functions before
users enter their /bin/csh shell. Their /etc/passwd entry points to this
program which execs /bin/csh after it's finished doing its housekeeping stuff.
It works fine on ULTRIX but when we tried it on OSF/1 V2.0 /bin/csh executes
but doens't run the .login script. /bin/csh apparently isn't executing in
"interactive" mode. What do we need to change to make it execute csh in
interactive mode?
The following C code fragment calls /bin/csh:
strcpy(argv[0],"-");
ipoint = envp;
do {
if (strstr(*ipoint,"SHELL="))
{
strcpy(*ipoint,"SHELL=/bin/csh"); break;
}
} while (*++ipoint);
execve("/bin/csh", argv, envp);
I assume it has something to do with the "-" but I'm not sure how it wants me
to pass it.
Thanks in advance
Rich Siegel
siegelr@teleport.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-03-02 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-02 4:03 What is correct way to exec /bin/csh for interactive mode siegelr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox