From: "William H. Magill" <magill () dccs ! upenn ! edu>
To: tru64-unix-managers
Subject: su user in init.d and cron jobs
Date: Mon, 30 Jan 1995 21:38:27 +0000 [thread overview]
Message-ID: <96075316706675.tru64-unix-managers.marc@archive.invalid> (raw)
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 <userid> -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/
reply other threads:[~1995-01-30 21:38 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