N
N
neuro4live2021-06-28 18:00:22
linux
neuro4live, 2021-06-28 18:00:22

How to run cron script in terminal in ubuntu?

Hello! You need to run the python script with cron. I figured out how to set the start time. The cron script starts, but the terminal does not open, where you can see the progress of its execution. It is necessary that the terminal opens on the crown and the command to run the python script is entered. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-06-28
@ky0

What you want is decided by the logging setting. If you use systemd timers, then this functionality comes out of the box.

S
Saboteur, 2021-06-29
@saboteur_kiev

From the cron, the program is launched in the terminal, but not in yours, but in the background.
And that's okay, that's the way it should be.
If you want to keep track of progress, your script should write actions to a log file that you can view at your convenience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question