以编程方式在启动时启动应用程序 linux
Start application at startup linux Programmatically
我正在用 C 编写一个程序,它可以选择(为用户)在 Linux 启动时自动启动。我正在寻找代码片段或有用的东西。我想要的方式是以编程方式 if the user selected auto-startup, then (code I am looking for)
我看到了很多关于 cron 作业和 /etc/rd.somethings
的东西,但它似乎不是我要找的东西。
if the user selected auto-startup, then (code I am looking for)
一种方法是将 cron 作业添加到具有特殊时间规范的用户的 crontab @reboot
。
我正在用 C 编写一个程序,它可以选择(为用户)在 Linux 启动时自动启动。我正在寻找代码片段或有用的东西。我想要的方式是以编程方式 if the user selected auto-startup, then (code I am looking for)
我看到了很多关于 cron 作业和 /etc/rd.somethings
的东西,但它似乎不是我要找的东西。
if the user selected auto-startup, then (code I am looking for)
一种方法是将 cron 作业添加到具有特殊时间规范的用户的 crontab @reboot
。