tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* UPDATE: SUMMARY: Crontab Entry
@ 2001-11-30 10:54 JC Faul
  0 siblings, 0 replies; only message in thread
From: JC Faul @ 2001-11-30 10:54 UTC (permalink / raw)
  To: tru64-unix-managers

For all the Kornshell/scripting newbies like me,  thought you
might be interested in what the doctor prescribed.

|Your script wants to use a parameter of some kind called DATA, and
|you have it defined as an environment variable in your interactive
|command line environment, but the shell that's running your cron
|job does NOT read all of your interactive login startup scripts (it
|may not even be the shell you normally use, so you might not have
|your environment set up right if you changed your shell).  You have
|to have your script establish the right environment.  One way to 
|get all of your stuff out is to use "printenv" to print all of
|your interactive environment variables into a file, then edit the
|file to put them into a "source-able" format for the shell that
|you like to use in your scripts, and then read it at the start of
|your cron job.   Alternatively, you could write a wrapper script
|that establishes the equivalent of your interactive environment
|and then invokes its first argument passing the rest of the args
|to that script.  There are LOTS of ways to do this.  

|Welcome to how "cron" really works.

|Tom

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

only message in thread, other threads:[~2001-11-30 10:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-30 10:54 UPDATE: SUMMARY: Crontab Entry JC Faul

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