I am trying to run a shell script file using cron and I am getting permission denied error.
Here is my cron file.
53 14 30 10 * $HOME/Documents/Python/shellScript.sh
I want to run shellScript file at a particular time today.
Here is my shellScript.sh file.
osascript<<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "python file1.py" in window 1
end tell
EOF
osascript<<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "./ngrok 5000" in window 1
end tell
EOF
python file2.py
I am getting this in the mail. /bin/sh: /Users/XXX/Documents/Python/shellScript.sh: Permission denied
It would be great if anyone can help me with this. Thank you