From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075316706675.tru64-unix-managers.marc@archive.invalid> From: "William H. Magill" Date: Mon, 30 Jan 1995 21:38:27 +0000 To: tru64-unix-managers Subject: su user in init.d and cron jobs X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075316706675 Someplace I've seen this discussed recently but can not find it. Basically... to start up certain jobs/daemons typically from rc.local, but frequently from cron, under Ultrix we have used the syntax: In cron: # 0 0 * * * su -c '/usr/local/commadn' In rc.local: su - ingres -c "yes | iistartup" >/dev/console 2>&1 In particular, the latter when used in init.d linked into rc3.d doesn't work. su: may not be called from rc script I know I've seen this discussed someplace but can't find it.... Any hints? T.T.F.N William H. Magill Manager, PennNet Computing Services Data Communications and Computing Services (DCCS) University of Pennsylvania Internet: magill@dccs.upenn.edu magill@acm.org magill@upenn.edu http://pobox.upenn.edu/~magill/