Hi,
I want to follow the postfix queue.
The command "postqueue -p | tail -n 1 | awk "{print match($5, /[^ ]/) ? $5 : 0}" does what I want.
If the queue is empty, it returns 0, else it returns the number of mails.
I'm unable to add it inside the system.run due to "incorrect syntax".
How to preperly add the command? How to escape it?
I want to follow the postfix queue.
The command "postqueue -p | tail -n 1 | awk "{print match($5, /[^ ]/) ? $5 : 0}" does what I want.
If the queue is empty, it returns 0, else it returns the number of mails.
I'm unable to add it inside the system.run due to "incorrect syntax".
How to preperly add the command? How to escape it?
Comment