down interface with cronjob

ryudokung

New Member
Feb 25, 2019
2
0
1
32
Hello,

i have a problem down interface in the morning 08am to 06:30pm with cronjob

0 08 * * 1-5 qm set (vmid) -net0 e1000=AA:AB:CA:54:FA:FA,bridge=vmbr0,tag=821
and
30 18 * * 1-5 qm set (vmid) -net0 e1000=AA:AB:CA:54:FA:FA,bridge=vmbr0,tag=821,link_down=1

but command not working

this cronlog test at 19:10 and write to /tmp/debug.txt
upload_2019-2-25_19-53-25.png

file 0 bytes noting in the file
upload_2019-2-25_19-54-40.png
 
Last edited:
* guess in that case the problem is simply that `qm` is not in the standard-path cron uses (/bin:/usr/bin/:/usr/local/bin ) - try calling it with full path
`/usr/sbin/qm`
The error does not end up in your debug-file because it gets written to stderr, but you only redirect stdout

hope this helps