Narizz28
MIS
- Mar 8, 2001
- 161
Forgive my ignorance in advance, I'm an experienced Windows administrator and have very limited knowledge of shell scripting for Unix.
I am trying to modify a cron job that calls an FTP.sh script into calling the original script if it's Saturday, and a different one otherwise (FTP2.sh). Using the BASH shell, would the syntax be something like this:
I'm EXTREMELY green on bash scripting syntax. Does the above look anything near correct?
Thanks in advance.
I am trying to modify a cron job that calls an FTP.sh script into calling the original script if it's Saturday, and a different one otherwise (FTP2.sh). Using the BASH shell, would the syntax be something like this:
Code:
if [ `date +%A`="Saturday" ] then
FTP.sh
else
FTP2.sh
fi
I'm EXTREMELY green on bash scripting syntax. Does the above look anything near correct?
Thanks in advance.