stupid perl question

2011-06-23 Thread Steven A. DuChene
I am attempting to do a tail -f on a log file that has a new line added to it every 15 seconds. I need to parse and process each new line as it is added to the file. I am trying to use the following example code from cpan to see if the basic concept will work using File::Tail but when I run the

Re: stupid perl question

2011-06-23 Thread Kevin Fries
Is there a reason the log scraper needs to be done in perl? There is a utility that will read log files from the end called tac. Maybe it will help. Just a thought. Kevin On Jun 23, 2011 5:17 PM, Steven A. DuChene linux-clust...@mindspring.com wrote: I am attempting to do a tail -f on a log

Re: stupid perl question

2011-06-23 Thread Steven A. DuChene
I am doing lots of processing of each line once I read it and sending it onto another utility.All of that code is already written in perl.I really didn't think something like this would be that hard in perl. :-)-Original Message- From: Kevin Fries Sent: Jun 23, 2011

Re: stupid perl question

2011-06-23 Thread der.hans
Am 23. Jun, 2011 schwätzte Steven A. DuChene so: moin moin, heading out right now, so can't be detailed. Check autoflush. HANDLE-autoflush(EXPR) $OUTPUT_AUTOFLUSH $| If set to nonzero, forces a flush right away and after every I don't remember which CPAN module I

Re: stupid perl question

2011-06-23 Thread Matt Graham
From: Steven A. DuChene linux-clust...@mindspring.com I really didn't think something like this would be that hard in perl. :-) use File::Tail; $file = File::Tail-new( name=/home/mhgraham/bin/power_input_stuff.txt, maxinterval=5, interval=1, tail=-1 ); while (defined(my $line = $file-read)) {

Linux and VMWare?

2011-06-23 Thread mike enriquez
I have a VMWare computer running Red Hat Linux. Talking to some Linux people, I learned this is common. What are the Pros and Cons of running Linux on a virtual machine? What do you think? All comments will be appreciated? It seems like lot of extra work to me but I am newbie. What do I

Re: Linux and VMWare?

2011-06-23 Thread Kevin Fries
Linux works very well in virtual environments. Linux compared to Windows is very efficient with resources, and therefore does not suffer nearly as badly from the VM overhead. That being said, I, personally am not a fan of VMware. For desktops, especially with windows as the host, I like

Re: Linux and VMWare?

2011-06-23 Thread Ariel Gold
If you're using windows as the host, then it seems that you lose out on a lot of the benefits of running gnu linux, namely that you aren't prone to viruses/malware/system corrupting itself. I run gnu linux as the host and windows in a virtualbox machine. If windows has a problem, it's easy to just

Re: Linux and VMWare?

2011-06-23 Thread Dan Lund
Well, it's a good environment to get your hands dirty, but it's not quite the same since it's entirely virtualized. There are quite a few things you can't do in a virtualized session such as virtualization technologies. If you just want to fiddle with it to touch it, you're fine. If you want

Re: Linux and VMWare?

2011-06-23 Thread Stephen
I have been wanting to learn km but virtualization the only real disadvantage is direct hardware connectivity for peripherals. On Jun 23, 2011 4:55 PM, mike enriquez myli...@cox.net wrote: I have a VMWare computer running Red Hat Linux. Talking to some Linux people, I learned this is common.

Re: Linux and VMWare?

2011-06-23 Thread Bryan O'Neal
If you are not using special hardware virtual is virtually the same as real hardware. I agree that it is better to run windows in the vm and the vm server on linux but if your a gamer with a fat video card I get leaving windows with direct access to the power. As far as vm to virtual box - I

Re: Linux and VMWare?

2011-06-23 Thread Technomage Hawke
I have found that running linux as a host and running a linux guest are a very powerful combination. I used this combination to test different distributions and had very little difficulty in setting up a new instance. I also ran windows, openbsd (as the firewall) and sun solaris for pc and a

Re: Linux and VMWare?

2011-06-23 Thread Adam McCullough
It also gives you that opportunity to do su -c 'rm -rf /' with little guilt. ;) On 23 June 2011 22:00, Technomage Hawke technomage.ha...@gmail.com wrote: I have found that running linux as a host and running a linux guest are a very powerful combination. I used this combination to test