su -c error in DU 4.0B

From: <ejensen5_at_csc.com>
Date: Mon, 08 Jun 1998 15:35:24 +0200

Erlier discussions in this group concluded that the su -c switch is still
working in the DU 4.0 releases, but has disappeared from the man page.

But this little script hangs my terminal:

    su - -c who
    print hit a key to Return
    read DUMMY

It works if I type the 3 statements by hand, but inside a script I get
problems, something gets wrong with the input/output descriptor. The who
command is not what I want to do, it is only an example.

It works too if I leave the first - switch, but unfortunately it is a must
to execute the .profile in the menu system I'm developing.

Ideas ?

--
Ena Jensen
Received on Mon Jun 08 1998 - 18:40:27 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT