Task-scheduler problem

Hi Guys,
i have a problem with task-scheduler in VyOS 1.0.4 - simply dont start may script :

task backup {
executable {
path /config/scripts/bc.sh
}
interval 1h
}

When I run script from cli - its work and send conifig file to the backup server :

zlatko@fw:~$ /config/scripts/bc.sh
######################################################################## 100.0%

Does anyone have any idea where the problem is?

regards
Zlatko

Hello,
Please update to 1.1.8 before we can troubleshoot any further

…thank’s i will … but it is a production device and I have to run the prescribed procedures and it takes some time … task-scheduler doesn’t work in 1.0.4 ?

regards
Zlatko

Hello,
have no idea if it works in 1.0.4 and will not figure out it :slight_smile:
You should plan update anyway, many things happened since 1.0.4

Hi,
ok… it’s clear - 1.0.4 is dead :slight_smile:
yesterday, I checked on the 1.1.7 machine in LAB and - works … forget 1.0.4 and go to the future :slight_smile:

thanks for your help,

regards
Zlatko

Latest is 1.1.8 but even 1.1.7 is better than 1.0.4 :slight_smile:

I have the same problem and i run 1.1.8. I have been given some advice but still no joy.

http://textuploader.com/dpbax

My script is for backing up the running config in a remote server.
If i run it manually it works, but not with the “task-scheduler”.

Interestingly enough, if i comment out all my comands and I add only → logger “test end” , at the end of the script it does work (as I was adviced) . However it i add another logger at the beginning of the script it doesn’t.

I thought it could be permissions but i have setup the file with write permissions for all

I have also tried to use the regular crontab but this does not work either.

Any further ideas/advice would be appreciated.

…I solved this problem by adding to the top of the script:

#!/bin/vbash

regards,

Zlatko

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.