M
M
Moolzv Rivers2019-08-15 03:54:11
linux
Moolzv Rivers, 2019-08-15 03:54:11

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

3 answer(s)
D
DevMan, 2019-08-15
@SaddledSharp

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?

A
Aram Pakhchanian, 2019-08-15
@aram_pakhchanian

It's a little different for different distributions. Google “init.d”

P
paran0id, 2019-08-16
@paran0id

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 question

Ask a Question

731 491 924 answers to any question