Script Works, But Not with CRON
Kenneth Brody
kenbrody at bestweb.net
Wed May 5 10:37:15 PDT 2004
Fairlight wrote:
[...]
> > 20 5 * * 1-5 sh -c ". /u/cron.env; /u/job1"
>
> Something about this confuses me.
>
> If you set the environment from the child script cron.env, its settings
> should never propogate back to the parent level at which job1 is running.
>
> You're saying it does?
The command:
scriptname
runs the script in a subshell.
The command:
. scriptname
runs the script in the current shell.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list