A bash script is executed with crontab. For each run the following error is delivered as email:
/opt/Informatica/pcdev/scripts/startworkflow_trg.sh: line 1: #!/bin/bash: No such file or directory
Content in the crontab is as follows:
# Check queue and start corresponding processes in test
* * * * * (. ~/.bash_profile; $HOME/scripts/startworkflow_trg.sh tst)
The script works as it should, but the error emails are piling up in the inbox. How can this error be solved?
echo $HOME?~to$HOMEand remove the unnecessary parentheses and replace the semi-colon with&&.