当我执行crontab -l时,我在终端上得到了@reboot cd my_project_path; ./start.sh。
然而,当我执行@reboot cd my_project_path; ./start.sh时,我得到了-bash: @reboot: command not found。如何在bash中包含reboot命令?抱歉,如果这是一个非常基本的问题,但我不是bash的大师。
使用窗口上的putty对我的arch linux桌面进行ssh。可以成功地通过putty/eshell连接,但是当我这样做时,它会启动一个新的x服务器,而我在桌面上打开的所有东西都会消失,直到我关闭连接为止。plink -ssh user@xxx.xx.x.x
Release Date: 2016-07-19
X Protocol Versi
sync(); //need for data safety
reboot(RB_AUTOBOOT); 除非您通过SSH连接并在连接的设备上运行此程序。然后,SSH连接挂起。如果您通过SSH连接并使用CLI命令 sudo reboot 或 sudo shutdown -r now SSH连接将终止,并显示以下消息 Connection to xxx.xxx.xxx.xxx我阅读了https://man7.org/linux/man-pages/man2/reboot</e