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

2009-09-06 Thread Elliot Murdock
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

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

2009-09-06 Thread Gordon Henderson
On Sun, 6 Sep 2009, Elliot Murdock wrote: 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.

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

2009-09-06 Thread Elliot Murdock
Hello Gordon! Thanks...it works now. How did you notice that it needed input from the keyboard? Do you think I should make the developers aware of this issue? Thanks, Elliot On Sun, Sep 6, 2009 at 2:12 PM, Gordon Hendersongordon+aster...@drogon.net wrote: On Sun, 6 Sep 2009, Elliot Murdock

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

2009-09-06 Thread Gordon Henderson
On Sun, 6 Sep 2009, Elliot Murdock wrote: Hello Gordon! Thanks...it works now. How did you notice that it needed input from the keyboard? Experience. (Of being a unix/linux user/sysadmin for 25+ years) I ran: dsx# rasterisk -x 'sip show peers' /tmp/foo [1] 8172 dsx# Then hit