* su -c issued twice hangs process
@ 1997-09-23 14:48 Hugh Pritchard
0 siblings, 0 replies; only message in thread
From: Hugh Pritchard @ 1997-09-23 14:48 UTC (permalink / raw)
To: tru64-unix-managers
In a proposed startup script there are two lines like
su - oracle -c "command string"
The second one hangs. Experimenting, we've found that
su - oracle -c "ps; exit"
doesn't hang after the second one.
I know the -c something gets passed to the new shell (in this case,
ksh) by su. I've also heard that this is a problem on HPUX machines.
Is this a known problem, with the workaround being to add the exit
to the command string?
If the exit command is ALWAYS needed in the command string, why does
the first su work and return?
Is this an su problem, or a ksh problem?
--
Hugh mailto: Hugh.Pritchard@MCI.com
MCI Midrange Platform Support, Pentagon City
703-414-6995
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-09-23 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-23 14:48 su -c issued twice hangs process Hugh Pritchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox