P
P
parkito2015-09-13 19:11:43
linux
parkito, 2015-09-13 19:11:43

How to autorun a bash script?

Hello. It is necessary that when starting ubuntu, a bash script is executed, which enters the server via ssh and downloads something from there, after that it does not break the connection. Tried to register in /etc/rc.local . However, as I understand it, scripts of this kind will not autostart. Please tell me how to solve this problem.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton Cherkasov, 2015-09-13
@parkito

I have always done such things through cron. The command in the terminal to edit the list of scheduled tasks:
Add the line:
I may be wrong, but it seems to work without additional gestures.

A
Anton, 2015-09-13
@jimmyjonezz

Look here - the loading sequence and the behavior of the script at different runlevels.

N
n1mda, 2015-09-13
@n1mda

How do you manually run this script?

N
Nadz Goldman, 2015-09-13
@nadz

/etc/rc.local

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question