I have an array of files (about 10,000), and I need to do something with each file (search, count the lines, etc).
I want it to run in parallel so it runs a bit faster.
I have made an array (@search_array) where each element in the array contains a portion of the 10,000 files, separated by...
Maybe I'm going about this the wrong way, but here's what I'm trying to do:
I have a hash that is storing the output from the unix "df" command, to get the disk used and disk free for each filesystem. Here is how I build the hash:
sub get_df {
my %hash=();
my @data=qx(df -t -k)...
I have a script that parses event logs from a database every day. While there are maybe around 4000-8000 actual events (queries) against the database, the log contains about 120 "pieces of data" for each event... (A piece of data being items like the Connection time, CPU Used, Memory used...
Good morning,
I am writing a perl script that is a wrapper for another Unix command. I want to pass my perl script a regex-style string, and then have the perl script modify that string to pass to the Unix command.
The Unix command uses the percent sign (%) as a wildcard instead of the...
Good afternoon,
I am trying to write some code in VB.NET that starts a timer when a user locks their windows desktop (either their screen saver is set to lock the computer after nn minutes, or they manually lock their computer), and then stop when the computer is unlocked, and subtract to get...
I've searched around for this for a while, and I'm not sure I'm using the right "buzzwords", so I thought I'd post one myself:
I want to write a VB.NET program to run as a proxy server, so I can point Internet Explorer's proxy port to the port defined in my program. Then, as I surf the web, my...
Hello,
I have an array of files:
my @array=('/tmp/file1,/tmp/files/file1','/tmp/file2,/tmp/files/file2');
Notice that there are 2 elements in @array, but each element is comma separated. I want a main array to contain all (in this example) 4 elements.
Currently, to accomplish this, I use a...
Hi all,
What I am trying to do is be able to browse around on the web and count occurances of certain words while I browse, and keep stats.
I am thinking a proxy would be the best way, but I am having a very hard time - I was using HTTP::Proxy but my browser won't connect to my proxy.
Maybe...
Hello!
I am converting a DS Server job to a PX job, and the Server job uses 6 server routines. (We are using Datastage PX version 7.5) I wrote the routines in C and created new Parallel Routines to provide the same functionality. I am linking them as objects, not libraries.
5 out of the six...
Hello All,
I have a korn shell script that I use on an AIX machine to notify me once a group of files have arrived on the machine.
The script will run and check for the files every 10 minutes - during the check to see if the files are present, there is also a check to see if the file is in use...
I found a perl script that gives you the disk usage of a directory and outputs it in a tree structure.
This isn't coded the best, but it does bring up some interesting techniques that I thought PaulTEG, WarBlade, Kevin, and others might enjoy explaining? There were a few lines in this code...
Hello everyone!
I have a directory that is very large (contains over 4,000 files in it), so "grep string *.sh" does not work because *.sh returns to many files for grep. Also, many of the files contain lines that are longer than 2048 bytes long - another condition that causes grep to fail.
This...
Hello All,
We use these lines in a script to get the last day of the month:
LastDayOfMonth=$(cal)
LastDayOfMonth=${LastDayOfMonth##* }
This always works well and we haven't had any problems... Until last month. For the month of october, $LastDayOfMonth is "30 31" for some reason. I tested...
I have a problem with the setup of my email system on my linux box. I am running Mandrake 9.1 with postfix. I am able to send emails out to external email addresses - such as hotmail, etc. The reply address I see is user@hostname. Obviously I cannot reply to this email address since I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.