From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079042215522.tru64-unix-managers.marc@archive.invalid> From: Zack Ellis Date: Thu, 06 May 1999 15:00:46 +0000 To: tru64-unix-managers Subject: Summary: su redirect in a script X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079042215522 Thanks to: Scott Skeate Alan Davis Ola Abrahamsson Ofer Kessler Jacques DEMEULEMEESTER Martin Vasa Dr. Thomas P. Blinn The most popular answer was basically su - oracle -c "lsnrctl status" with various forms of I/O redirection. I've found that using the -c options hangs more often than not, which is why I used the << EOF Either way it still hangs. So in the mean time I've just decided not to turn it on/off from a script. I'll ask Oracle and see where I get but don't have high hopes. Still bugs me as to why if cron calls it it works, but not from the command line! Has to be a stderr/stdout thing but..... I give. Zack Ellis UNIX SysAdmin Home Care Concepts of America