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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by iowaprogrammer

  1. iowaprogrammer

    link to wuredist.cab not found 404 - MBSA

    Just started working and have been able to download the file as of Wednesday afternoon. Had been trying to get it for over a week.
  2. iowaprogrammer

    link to wuredist.cab not found 404 - MBSA

    We having been using the following link http://update.microsoft.com/redist/wuredist.cab to download the the latest file for use with MBSA to determine what patches are needed for our windows 7 machines. I was able to get it last month (July 2012). But this month I ram recieving the Server error...
  3. iowaprogrammer

    Solaris bash script using grep giving error

    Solution is put tick marks around the regular expression. Thanks to PHV for the solution #!/usr/bin/bash mailq|grep '^[A-F0-9]'|cut -c 42-80|sort |uniq -c|sort -n|tail > /tmp/qResults
  4. iowaprogrammer

    Perl system command using grep that return not found error

    Rewrote the $CHECK variable as my $CHECK = "mailq|grep '^[A-F0-9]'|cut -c 42-80|sort |uniq -c|sort -n|tail > /tmp/qResults"; This was based on a response given by user PHV. If their is a simpler complete perl method though I would be interested learing of it to add to my my knowledge base
  5. iowaprogrammer

    Solaris bash script using grep giving error

    Hmmm...interesting. That did the trick for me, Thank you PHV. Figured it would be something simple that I was missing.
  6. iowaprogrammer

    Perl system command using grep that return not found error

    When I run this code on a linux machine I have no problems; but when done on a Solaris 10 machine I receive the following message back. Message: sh: [A-F0-9]: not found Usage: grep -hblcnsviw pattern file . . . Code: #!/usr/bin/perl my $CHECK = 'mailq|grep ^[A-F0-9]|cut -c 42-80|sort |uniq...
  7. iowaprogrammer

    Solaris bash script using grep giving error

    Trying to run the following one liner in a bash script to check our mailq for big users. But I receive the error below when trying to run from a script instead of command line. Command line it works great. Anybody have a solution or alternative? #!/usr/bin/bash mailq|grep ^[A-F0-9]|cut -c...
  8. iowaprogrammer

    Solaris bash script using grep giving error

    Trying to run the following one liner in a bash script to check our mailq for big users. But I receive the error below when trying to run from a script instead of command line. Command line it works great. Anybody have a solution or alternative? #!/usr/bin/bash mailq|grep ^[A-F0-9]|cut -c...
  9. iowaprogrammer

    Drops < > brackets when displaying returned output

    That fixed my results; Thank you so much
  10. iowaprogrammer

    Drops < > brackets when displaying returned output

    Running a fairly simple script but not sure how to get the script to display the missing data encapsulated between the < > brackets. I would like to have the page display the results as returned. Expected results Apr 18 23:20:25 isp.com postfix/local[4431]: [ID 197553 mail.info] BAD854989F...
  11. iowaprogrammer

    split() on /

    Thank you Thank you thank you lol
  12. iowaprogrammer

    split() on /

    I am trying to read a string and have it split into pieces using the split() function. I am using the "/" as the separator to split on, but not sure how to write the split to use the "/". Input is going to be directory listings like below /usr/home/<userid>/Trash /usr/home/<userid>/Sent...
  13. iowaprogrammer

    Spliting line with varying entries

    feherke I tried the code you gave and it worked like a charm. while ($db->FetchRow()) { undef %Data; ($Data) = $db->Data(); $_=$Data; print "$_\n"; $_=~s/\|/\r\n/g; print "$_\r\n"; } I am writing it on a windows machine and I believe it was the editor. I tried komodo and the...
  14. iowaprogrammer

    Spliting line with varying entries

    I am trying to write a program to extract user info from a database and write them into a file. The content of the field in the database I am calling can have one or more entries and are separated by a '|'. See sample data below... user@domain|user2@domain|user3@domain friend@domain...
  15. iowaprogrammer

    NFS server - after making changes to /etc/default/nfs What is needed t

    I am running an NFS server in a production enviroment on a x4450 and am in the process of making the following changes to /etc/default/nfs. # increased LOCKD_SERVERS to 128 from default 20 # increased NFS_SERVER to 256 from default 16 # increased LOCKD_LISTEN_BACKLOG to 128 from default 32...

Part and Inventory Search

Back
Top