Damn me. Here is excerpt from the actual code that does the backup script
Quote:
# Include a script library with common variables and functions (used by other
# scripts as well)
. ../GenericUtilities/ShellUtils.shl
# Some other task
# Some other task
# Some other task
# Some other task
echo echo ${DATE} > ${BK_DATE_FILE}
# Some other task
# Some other task
/usr/bin/dvd+rw-format -b /dev/dvd
/usr/bin/growisofs -use-the-force-luke=dao -speed=1 -Z /dev/dvd=${ISO}
# Rest of the script
|
I had two workspaces - a development space and a live space. What I usually do is develop the code in the development space, test it, commit to the repository and update the live workspace from the repository.
I have the BK_DATE_FILE variable declared in the ShellUtils.shl. In this case, I had done it only on the development workspace and not in the live one. So the shell script had a blank for BK_DATE_FILE. I now updated the live workspace and it works.
If somebody needs a better explanation, please let me know the exact thing you want to know; I shall try to answer as best as I can.
Thanks for your time.