Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BrianAtWork

    Forking - run in parallel

    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...
  2. BrianAtWork

    Sort hash of hashes by values

    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)...
  3. BrianAtWork

    Exclusion Optimization

    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...
  4. BrianAtWork

    Create Custom Regex

    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...
  5. BrianAtWork

    Tell when Computer is locked and unlocked

    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...
  6. BrianAtWork

    Custom Proxy Server (Watch for HTML)

    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...
  7. BrianAtWork

    Split an array of comma separated elements

    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...
  8. BrianAtWork

    Is a proxy the right way to do this?

    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...
  9. BrianAtWork

    Parellel Routine Compiles, but job fails

    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...
  10. BrianAtWork

    How to tell if file is in use?

    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...
  11. BrianAtWork

    Analyze perl script - Recursive calls - crazy code!

    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...
  12. BrianAtWork

    Code Optimization for "grep" substitute

    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...
  13. BrianAtWork

    Last Day of Month script - problem for OCT

    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...
  14. BrianAtWork

    Internal Mail will not work (Postfix)

    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...

Part and Inventory Search

Back
Top