From: Robert Klemme Date: 2009-08-23T07:15:14+09:00 Subject: Re: Interactive Commands On 22.08.2009 22:51, Joćo Santos wrote: > Anyhow some of the functions of the bot require to execute commands on > the server itself, managed to do fine using the backticks but every now > and then the bot just hangs because sometimes when deleting files, ie, > the OS asks for permission and waits for user input ... and it just > hangs there waiting. Why do you need an external process to delete files? > Is there anyway to hack across this ? > I've tried open3 and open4 but the also hang when i request the stdout > of the command. > The ideal would be to have full control of output and input via IRC :x Well, then you need one of the popen variants and need to read the command's output, detect that it needs input and handle that accordingly (e.g. forward it to a client). Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/