Any error msgs? Pls keep in mind that processes launched by cron run in a reduced environment, and perhaps in another shell, so are you sure all commands are on the PATH var?
The % character has a special meaning in crontab entries.
man crontab
...
You need to escape each % as \%;
'text1%text2' becomes 'text1'\%'text2' and "text3%text4" becomes "text3"\%"text4" (i.e. two strings with a \% in between).
And if you run the /var/tmp/gcsw/script.sh on the command line?
Ensure it is executable,
and put a first line #!/bin/bash
to ensure it is the correct shell (your commands require bash or ksh or a Posix-sh).
Additionally, as others posted, you can ensure that PATH in the script is equal to your current PATH. Do echo $PATH
and insert a 2nd line in your script export PATH=yourcurrentpath
where you replace yourcurrentpath with the output of the echo command.
Ensure, your crontab entry was done with crontab -e
and is visible with crontab -l
Finally, if the script works on your command line but still not in the crontab, check the cron log file. (The log file is dependent on your operating system.)