down interface with cronjob

ryudokung

New Member
Feb 25, 2019
2
0
1
30
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!