Script Variables Inquiry, Values Okay in Standalone Exec, No-Show in Cron Exec

view full story

http://www.unix.com – I have the following bash script lines in a file named test.sh. Code: #!/bin/bash # # Write Date to cron.log # echo "Begin SSI Load $(date +%d%b%y_%T)" # # Get the latest rates file for processing. # d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1) filename=$d export filename echo "The file name is $filename." When I execute ./test.sh from the command line, the variables are set and the file name is displayed. However, when I have the script run through cron, the file name comes back blank. This gives me an indication that the d (HowTos)