Re: Environment Variables available from Crontab
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eduardo Aldaz wrote:
> Dear All
> My crontab calls a script that I'd like to be able to read an
> environmental variable that I've created.
>
> My question is , where can I create/initialize this environment variable
> so that it is accesible to this script? Each time this script is called
> by crontab it would change the environment variable, as it is some sort
> of counter...
Unix lets you see your parent's environment variables, but not
modify them so that it affects the parent's copy of the variable.
Of course, OpenVMS does this with ease, and I use that feature all
the time.
>>From what I gather /etc/profile is only used by login scripts? So it
> would be of no use?
>
> Thanks for your help
> Eduardo
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEcNCzS9HxQb37XmcRAjPXAJ4/ccwUEfui3XHkj/LhdsEtJ2eScwCdEWMK
jkboVKN67Xvo2TeUUYqI1ZM=
=Cp0U
-----END PGP SIGNATURE-----
Reply to: