tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* su user in init.d and cron jobs
@ 1995-01-30 21:38 William H. Magill
  0 siblings, 0 replies; only message in thread
From: William H. Magill @ 1995-01-30 21:38 UTC (permalink / raw)
  To: tru64-unix-managers

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/
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-01-30 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-30 21:38 su user in init.d and cron jobs William H. Magill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox