Bash reload command not found

I am trying to execute a script on a server. When I do crontab -l, I get @reboot cd my_project_path; ./start.shon the terminal.

However, when I do @reboot cd my_project_path; ./start.sh, I get -bash: @reboot: command not found. How to enable reboot command in bash? Sorry if this is a very simple question, but I'm not a master in bash.

+5
source share
2 answers

No team @reboot. I think you are looking

shutdown -r now

or (possibly)

/sbin/reboot

which will restart your computer. However, crontab@reboot is the scheduled time, so the command will work when your system just reboots ... so maybe you really just wanted to

cd my_project_path; ./start.sh
+15
source

@reboot crontab " /, "

0

All Articles