Answer the question
In order to leave comments, you need to log in
Autoload\autorun program in Linux?
I want to create my own "AI", if I can call it that, which will launch a terminal when Linux starts and run a program in the terminal that checks for updates and, if there are any, update it, then close it when finished. How can this be implemented? I'm not talking about checking for updates, but about autoloading.
Answer the question
In order to leave comments, you need to log in
You don't need to open a terminal to run the program.
Well, what kind of a hacker are you, if you are not even able to google such elementary stuff?
It's a little different for different distributions. Google “init.d”
Everything is simple. Linux on systemd, most likely?
We read the dock: https://www.freedesktop.org/software/systemd/man/s...
We create a one-shot service, we prescribe a command in Exec that should be executed
We make enable this service, we check it.
You can also make a timer so that it starts not only at boot, but periodically on a schedule.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question