Output of command messages to a file

larry77

Member
Jul 25, 2021
6
0
6
42
Tell me how you can send the output of command messages to a file?

Bash:
proxmox-backup-client backup root.pxar:/ ... > status.log
doesn't work like that

Bash:
proxmox-backup-client prune ...> status-prune.log
that's how it works
 
Hey,

these should work:
- command >> filename 2>&1 will append stdout as well as stderr of the command to the end of the file.

- and command > filename 2>&1 for overwriting the whole file.
 
  • Like
Reactions: larry77