Variable not passing to file in bash script
Hello All
I store a variable after being read using the echo command so something like:-
VOLUME=$(echo command to read name of volume)
echo $VOLUME
I then write this name in a command list file a bit later in the script, so something like:-
echo $string5 >> command_list_file
When running this file from the command line the name of the file gets inserted into the command_list_file. However, when running the file via a cron job, the name of the file doesnt???
Any idea why this may be?
Thanks in advance to any help!
|