Displaying 2 results from an estimated 2 matches for "readloop".
Did you mean:
read_loop
2007 Mar 01
0
No subject
...@command = command
end
attr_reader :command, :status
end
def from_child(command)
output = ""
IO.popen(command) do |x|
begin
puts :BEGIN
old_sighandler = trap(:SIGCHLD) { raise ChildExit.new(command, $?) }
loop do
output << x.read(1)
puts [:readloop, output].inspect
end
rescue ChildExit => e
puts :RESCUE
trap(:SIGCHLD, old_sighandler)
puts [:select, IO.select([x], [], [], 0)].inspect
while IO.select([x], [], [], 0)
puts [:select, IO.select([x], [], [], 0)].inspect
chunk = x.read(1)
output << chunk if chunk...
2004 Nov 15
2
asterisk nagios plugin
hi
I've written, or upgraded a little more, a plugin for asterisk/nagios,
just in case someone should be interested. it uses the manager
interface to connect and checks staus. it's a dirty hack, but it works.
see
https://sourceforge.net/tracker/?
func=detail&aid=746083&group_id=29880&atid=541465 for more info
roy