Re: [foxboro] Unix script question

As others have mentioned, scripts executed by cron inherit very few
environment variable definitions. Also, you may need to use the full
path for the "uname" command mentioned as the correct solution, as very
few paths are pre-defined in the cron environment also.

Jack Easley
Sr. I&C Technician
Luminant Power, Martin Lake Plant
Phone 903.836.6241
jack.easley@xxxxxxxxxxxx
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of William C Ricker
Sent: Wednesday, May 20, 2009 6:16 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Unix script question

Matt,

>So, if I start a shell (VT100) and run my script, the log file I get
>shows that the script worked properly ...
...
>GCLBUG is a human interface variable defined during IA system startup -
you
should see it in >/usr/fox/wp/data/hiinit.log file.  It is not be
available
in all shells and environments unless you've made it >available in a
.profile or .cshrc file.  


GCLBUG is a variable created within the Display Manager or FoxView so
when
you start the shell under the
DM or FV, that shell inherits the variable as part of it's environment.
As
the variable doesn't exist
outside the DM or FV environments, it can't be inherited by shells
started
outside DM or FV, like
those started by 'cron'.  Therefore, the better method is to use the
"uname
..." that Kevin shows. It
will work in any environment

Regards,
William C Ricker
FeedForward, Inc.

 

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Confidentiality Notice: This email message, including any attachments, 
contains or may contain confidential information intended only for the 
addressee. If you are not an intended recipient of this message, be 
advised that any reading, dissemination, forwarding, printing, copying
or other use of this message or its attachments is strictly prohibited. If
you have received this message in error, please notify the sender 
immediately by reply message and delete this email message and any
attachments from your system. 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: