qm stderr

Simen Musaeus

New Member
Sep 20, 2017
9
0
1
55
Is it possible to set qm to print to stderr when a command doesn't execute properly?

With f.ex qm migrate it simply states that the Configuration file is missing, which is printed to stdout.

I'm using python fabric to automate some processes, and atm I'm having a hard time catching errors, because everything is printed to stdout.
 
normally errors are written to stderr
for example:
Code:
qm status <not-existing-vmid> > /dev/null
prints:
Code:
Configuration file 'nodes/<nodename>/qemu-server/<vmid>.conf' does not exist
on stderr

when you post the exact commandline and error, i can look if we mistakenly print something to stdout
 
dcsapak, I don't have the exact error atm, though I think I got confused by fabrics terminal formatting, which prehend "out:" before each line. The commands throws error codes, so I'm able to detect failures just fine.

dietmar, yes, though fabric gives you all these nice sudo-powers over ssh