Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Perl script
Name: unc-newbie Date: August 18, 2008 at 11:56:14 Pacific OS: linux CPU/Ram: dual 3gig xeon, 4gb ram Product: centos
Comment:
I would like to create a script in perl that can run a cmd off a text file line by line. Here is the cmd that i need run: ./removespikes.pl (rrd file location)
The file that contains the rrd file location on a line by line basis. /opt/rrdfiles/home/if_load.Fa0_1.rrd /opt/rrdfiles/home/if_load.Fa0_10.rrd /opt/rrdfiles/home/if_load.Fa0_11.rrd /opt/rrdfiles/home/if_load.Fa0_12.rrd /opt/rrdfiles/home/if_load.Fa0_13.rrd /opt/rrdfiles/home/if_load.Fa0_14.rrd /opt/rrdfiles/work/if_load.Fa0_15.rrd /opt/rrdfiles/work/if_load.Fa0_16.rrd /opt/rrdfiles/work/if_load.Fa0_17.rrd /opt/rrdfiles/work/if_load.Fa0_18.rrd /opt/rrdfiles/work/if_load.Fa0_19.rrd /opt/rrdfiles/work/if_load.Fa0_2.rrd /opt/rrdfiles/work/if_load.Fa0_20.rrd /opt/rrdfiles/school/if_load.Fa0_21.rrd /opt/rrdfiles/school/if_load.Fa0_22.rrd /opt/rrdfiles/school/if_load.Fa0_1.rrd /opt/rrdfiles/school/if_load.Fa0_10.rrd /opt/rrdfiles/school/if_load.Fa0_11.rrd /opt/rrdfiles/school/if_load.Fa0_12.rrd
So basically I am looking for a perl script that can run my removespikes.pl on a text file per line. And probably have it sleep for 5-10ms between each line.
Summary: Hello, I'm quite new to linux and am trying to figure out the best way to filter mail on a linux server the office I work at uses. I've tried learning about procmail, but it seems like I could really ...
Summary: Hi, I am having one strange proble in redhat linux 8.I am trying to execute my perl script.This is giving ": bad interpreter: No such file or directory ".I have seen the path of my perl is /usr/bin/pe...
Summary: I'm just learning perl and I have a question. Can I use awk in a perl script? I tried this @s_users=`/usr/bin/last | head |awk {'print $1'}"` ; but it didn't work. The result is just the commans last...