Quantcast
Channel: Run bash_profile in cron job - Server Fault
Viewing all articles
Browse latest Browse all 4

Answer by stew for Run bash_profile in cron job

$
0
0

. /root/.bash_profile or source /root/.bash_profile. which says to run that file in the current shell. Your method runs .bash_profile in s subshell, That sets up the variables in the subshell, then this subshell exits, taking these variables with it.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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