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

Run bash_profile in cron job

$
0
0

I had a problem that my cron script wasnt loading the environment variables so I added the following line:

#!/bin/shbash /root/.bash_profile

This seems to have no effect and the path variables are not being set correctly.How do I run the bash_profile script


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images

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