I have a script which executes manually:
#!/bin/bash
mount -t cifs //192.168.138.18/Shared_Drive /mnt/share -o username=user,password=guest
But sudo crontab -e
doesn't execute it. I tried:
@reboot /home/user/startup.sh
@reboot sh /home/user/startup.sh
@reboot bash -l /home/user/startup.sh
@reboot /bin/bash /home/user/startup.sh
Nothing works. Permits are:
-rwxr-x--x 1 user user
mount
in the script? – Robert Oct 30 '20 at 21:24/etc/fstab
instead? – Robert Oct 30 '20 at 21:28env > env.txt
and run it manually and via cron and see what the difference is. – ShawnMilo Oct 30 '20 at 21:32