Hi, Howto start a ''tail -f'' shell command and follow online the results. Example: like the PHP ''passthru'' command. The example below can start the command buts wait until the shell is finished. <%= %x{ls -l} %> or ''popen'' same problem. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Daniel Berger
2006-Sep-08 15:03 UTC
Re: How to start a tail -f shell command and follow online.
lucevers wrote:> Hi, > > Howto start a ''tail -f'' shell command and follow online the results. > > Example: like the PHP ''passthru'' command. > > The example below can start the command buts wait until the shell is > finished. > > <%= %x{ls -l} %> > > or ''popen'' same problem.There is a file-tail package available on the RAA that I recommend instead of shelling out. Cross-platform, too. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Luc Evers
2006-Sep-08 16:38 UTC
Re: How to start a tail -f shell command and follow online.
Dan, OK, but ''tail -f'' is only an example. Others like a ping,traceroute ... can be important to start from web Luc. On 9/8/06, Daniel Berger <Daniel.Berger-6vC2hAQLr78AvxtiuMwx3w@public.gmane.org> wrote:> > lucevers wrote: > > Hi, > > > > Howto start a ''tail -f'' shell command and follow online the results. > > > > Example: like the PHP ''passthru'' command. > > > > The example below can start the command buts wait until the shell is > > finished. > > > > <%= %x{ls -l} %> > > > > or ''popen'' same problem. > > There is a file-tail package available on the RAA that I recommend instead > of > shelling out. Cross-platform, too. > > Regards, > > Dan > > > This communication is the property of Qwest and may contain confidential or > privileged information. Unauthorized use of this communication is strictly > prohibited and may be unlawful. If you have received this communication > in error, please immediately notify the sender by reply e-mail and destroy > all copies of the communication and any attachments. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---