From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110540.tru64-unix-managers.marc@archive.invalid> From: Hugh Pritchard Date: Tue, 23 Sep 1997 14:48:00 +0000 To: tru64-unix-managers Subject: su -c issued twice hangs process X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110540 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