Re: [wtr-general] Use ruby script to get logs from linux server.
On Thu, Sep 30, 2010 at 5:39 AM, Wesley Chen cjq@gmail.com wrote: I tried your suggestion, but I didn't find the solution. You still did not say what is the problem! :) What did you try? Show us the code. (Remove username/password.) Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Use ruby script to get logs from linux server.
Hi, Guys, Currently, I use a tool in windows, named WinSCP, I login by username password, then I turn to a path /usr/lib/system.log, I will capture the unexpected content in the log. Now, I want to write a ruby code in windows to do the job, capture the log out directly. It will be the best if my script can capture only the latest error interface errors. It is a ruby question, but I still would like to ask in the group. Any suggestion would be really appreciated. Wesley. For life, the easier, the better. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
On Wed, Sep 29, 2010 at 3:10 PM, Wesley Chen cjq@gmail.com wrote: It will be the best if my script can capture only the latest error interface errors. If I understood you, you want to parse a log file and create a report? If that is correct, I have a script that does just that. It is easy to open a file (even remote file) in Ruby, and parse it. What is the problem? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
Hi Zeljko, I have to capture the log from the remote server with username/password. I will access it in my machine. Maybe your script can help. Would you please share it to me? I will have a try. Wesley. For life, the easier, the better. On Wed, Sep 29, 2010 at 9:13 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:10 PM, Wesley Chen cjq@gmail.com wrote: It will be the best if my script can capture only the latest error interface errors. If I understood you, you want to parse a log file and create a report? If that is correct, I have a script that does just that. It is easy to open a file (even remote file) in Ruby, and parse it. What is the problem? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
On Wed, Sep 29, 2010 at 3:17 PM, Wesley Chen cjq@gmail.com wrote: I have to capture the log from the remote server with username/password. I will access it in my machine. The problem is opening a remote file? Or something else? What have you tried so far? Any code to share? Maybe your script can help. Would you please share it to me? There is nothing really to share there, just opening a file and then parsing it. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
Hi, Zeljko, I use Windows system, I want to use ruby script to access a remote file in a linux server, I have to input Username and password to access the linux server. So, do you have any suggestion? Wesley. For life, the easier, the better. On Wed, Sep 29, 2010 at 9:20 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:17 PM, Wesley Chen cjq@gmail.com wrote: I have to capture the log from the remote server with username/password. I will access it in my machine. The problem is opening a remote file? Or something else? What have you tried so far? Any code to share? Maybe your script can help. Would you please share it to me? There is nothing really to share there, just opening a file and then parsing it. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
On Wed, Sep 29, 2010 at 3:24 PM, Wesley Chen cjq@gmail.com wrote: I use Windows system, I want to use ruby script to access a remote file in a linux server, I have to input Username and password to access the linux server. How do you access the file, via FTP? http://ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/index.html Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Use ruby script to get logs from linux server.
Hi, Zeljko, Thank you for your help, I tried your suggestion, but I didn't find the solution. Wesley. For life, the easier, the better. On Wed, Sep 29, 2010 at 9:27 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Sep 29, 2010 at 3:24 PM, Wesley Chen cjq@gmail.com wrote: I use Windows system, I want to use ruby script to access a remote file in a linux server, I have to input Username and password to access the linux server. How do you access the file, via FTP? http://ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/index.html Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com