SCO UNIX 3.2.2 Can't set login uid from cron

Stuart Lynne sl at van-bc.wimsey.bc.ca
Wed Apr 3 12:38:53 AEST 1991


In article <1991Apr02.123535.11230 at pfm.rmt.sub.org> bernd at pfm.rmt.sub.org (Bernd Hennig) writes:
>I have a great problem with the SCO UNIX 3.2.2 and cron. The following
>is a job in /usr/spool/cron/crontabs/news:
>
>15,30,40,00 * * * * /bin/su news -c "/usr/lib/news/bin/input/newsrun"
>

Just use:

  15,30,40,00 * * * * "/usr/lib/news/bin/input/newsrun"

And make sure that it is in the crontab for "news". I.e.:

	crontab -u news ....

For SCO UNIX, cron set's up the proper environment for you, including the LUID. So
you don't need the "su ..." stuff.

-- 
Stuart Lynne	Computer Signal Corporation, Canada
		...!van-bc!sl 604-937-7532(voice)     	sl at wimsey.bc.ca 



More information about the Comp.unix.sysv386 mailing list