I have a Script called "test.sh" in my Home Directory
I want to be able to run it in crontab.
I have added
* * * * * /home/tom/test.sh
to the crontab however it doesn't seem to be excecuting.
I can excecute ./test.sh fine normally in a Terminal Window.
Edit:
This is the content of my script "test.sh"
#!/bin/sh
gnome-terminal -- sh -c 'cd Server && ./start.sh'
It creates a new terminal window, changes directory to Server and runs another executable script.
I do not know if this has something to do with the script not working in Cron.
The error I get in /var/log/syslog is:
CRON[18694]: (tom) CMD (sh /home/tom/test.sh)
CRON[18693]: (CRON) info (No MTA installed, discarding output)