I made a shell script called /home/root/cron_grads.sh
(chmodded 755) on my server.
In this directory are more grads-scripts like 500hPa_p0.gs
(644). My main script creates a temporary file grads_exec.gs
, fills it with some content and then tries to copy the content of 500hPa_p0.gs
onto the end of it before executing the whole thing This works fine, even on the server if I start it manually.
But using crontab -e
with:
42 0,6,12,18 * * * /home/root/grads/cron_grads.sh
... an error occurs. The script starts but grads says:
cat: 500hPa_p0.gs: File or directory not found
I am using bash in cron_grads.sh
with #!/bin/bash
at the top in it. crontab -e
also contains SHELL=/bin/bash
.
Any ideas?