🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1665

Re: crontab for ordinary users

#1665
From: Joe Smith
Date: Mon, 29 Oct 1990 22:26
26 lines
1566 bytes
In article <1990Oct23.024811.15550@mlb.semi.harris.com> del@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@tardis.tymnet.com or jms@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."
Technical Details
Message-ID: <1312@tardis.Tymnet.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!usc!apple!olivea!tymix!tardis!jms
References: <1990Oct15.181918.8325@cubmol.bio.columbia.edu> <1294@tardis.Tymnet.COM> <FPB.90Oct21120952@ittc.ittc.wec.com> <1990Oct23.024811.15550@mlb.semi.harris.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!emory!wuarchive!usc!apple!olivea!tymix!tardis!jms
From: jms@tardis.Tymnet.COM (Joe Smith)
Newsgroups: comp.unix.shell
Subject: Re: crontab for ordinary users
Summary: Default ENV
Message-ID: <1312@tardis.Tymnet.COM>
Date: 29 Oct 90 22:26:31 GMT
References: <1990Oct15.181918.8325@cubmol.bio.columbia.edu> <1294@tardis.Tymnet.COM> <FPB.90Oct21120952@ittc.ittc.wec.com> <1990Oct23.024811.15550@mlb.semi.harris.com>
Reply-To: jms@tardis.Tymnet.COM (Joe Smith)
Organization: BT Tymnet, San Jose, CA
Lines: 26