Quantcast
Channel: How can I make an environment variable visible to a script placed in /etc/cron.daily? - Server Fault
Browsing all 2 articles
Browse latest View live

Answer by Pavi Kanetkar for How can I make an environment variable visible to...

If you want to add a variable to for all users of your system, you add it in the /etc/environment. It is global environment file. You want to define variable for your current script only, you can use...

View Article


How can I make an environment variable visible to a script placed in...

Say I have a script named "mydailyscript" containing the following: #!/bin/bash if [ ! -z $MYDAILYLOG]; then exec 1>$MYDAILYLOG fi echo This script ran on $(date) and I then copy this script to...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>