crontab for ordinary users

Joe Smith jms at tardis.Tymnet.COM
Tue Oct 30 09:26:31 AEST 1990


In article <1990Oct23.024811.15550 at mlb.semi.harris.com> del at thrush.mlb.semi.harris.com (Don Lewis) writes:
>How does PATH get set for cron jobs and commands executed by /usr/ucb/rsh?

I tried both crontab and /usr/ucb/rsh under SunOS-4.1 and got the following:
The environment was set to:
	HOME=/home/techserv/jms
	SHELL=/bin/csh
	PATH=:/usr/ucb:/bin:/usr/bin
	USER=jms
	PWD=/home/tardis/techserv/jms

The C-shell's local variables were:
	argv	(depends on the command)
	cwd	/home/tardis/techserv/jms
	home	/home/techserv/jms
	path	(. /usr/ucb /bin /usr/bin)
	shell	/bin/csh
	status	0
	user	jms

They appear to be hardwired into in.rshd, in.rlogind, login, and cron.
-- 
Joe Smith (408)922-6220 | SMTP: jms at tardis.tymnet.com or jms at gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C41    | BIX: smithjoe | 12 PDP-10s still running! "POPJ P,"
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."



More information about the Comp.unix.shell mailing list