I'm not sure why but my app never executes when I reboot my machine. In crontab
> crontab -e
I see
@reboot /root/myscriptname.sh
The file is
#!/bin/bash
nohup mono-sgen /root/myapp.exe /path/file > /dev/null 2>&1 &
I run
ps aux | grep mono
and I don't see my file. If i run /root/myscriptname.sh from the command line it runs fine. I tried using bash /root/myscriptname.sh
in crontab but that didn't solve it. How do I execute mono-sgen /root/myapp.exe /path/file > /dev/null 2>&1
without putting it in crontab (I want to leave it in a easy to disable sh file)