[asterisk-users] running a asterisk -rx command in bash backgroun

Elliot Murdock murdocke at gmail.com
Sun Sep 6 04:45:09 CDT 2009


Hello!

I have a very simple bash script:

#!/bin/bash
asterisk -rx "sip show peers" > /var/log/devices

When I run it in bash shell, everything works fine, but if I
background it (by adding & or using bg), nothing appears in the
/var/log/devices file.

Any reason for this behavior or help would be great!

Thanks,
Elliot



More information about the asterisk-users mailing list