I have a shell script that exports values of variables when executed. The same values will be used in another script.
#!/bin/sh export I="10" echo $I
I will be using root access for
I tried this command:
*/5 * * * * /home/ubuntu/backup/.test.sh
After it ran, I checked the environment variables, and nothing was updated.
How do I run this script in
cron and get it to properly export variables?