tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Hugh Pritchard <Hugh.Pritchard () MCI ! Com>
To: tru64-unix-managers
Subject: su -c issued twice hangs process
Date: Tue, 23 Sep 1997 14:48:00 +0000	[thread overview]
Message-ID: <96078617110540.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1997-09-23 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox