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 Mike Lewis 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: *

  • Users: john99999
  • Order by date
  1. john99999

    Im getting forgien characters when I email the output from "top"

    This is working ok, when I run the script through the commandline, but through a cronjob, it does not return anything for top? Why will this work through commandline and not through cron?
  2. john99999

    Im getting forgien characters when I email the output from "top"

    Thanks that did it! But it gives like 500 processes, is there a way to get it to return just 50?
  3. john99999

    Using ethereal with a SPAN port

    Thanks! conf t is the same as conf terminal right?
  4. john99999

    Using ethereal with a SPAN port

    no mon ses 1 ^ I tried that but got "error with input command at marker ^"
  5. john99999

    Im getting forgien characters when I email the output from "top"

    Fixed it, I added use Image::ANSI::Parser; But now it says: Use of uninitialized value in split at /usr/lib/perl5/site_perl/5.8.3/Image/ANSI/Parser.pm line 139. Can't call method "attr" on an undefined value at /usr/lib/perl5/site_perl/5.8.3/Image/ANSI/Parser.pm line 389. Any ideas?
  6. john99999

    Im getting forgien characters when I email the output from "top"

    Thanks, I installed that but I getting this error: # ./load.pl Can't locate object method "new" via package "Image::ANSI::Parser" (perhaps you forgot to load "Image::ANSI::Parser"?) at ./loadlog.pl line 11. Im my code I have: $top2=qx[top -n1]; my $parser = Image::ANSI::Parser->new; $top =...
  7. john99999

    Im getting forgien characters when I email the output from "top"

    When I email the output of top to my self it contains a bunch of forgien characters that dont appear if I just output it to the screen. How can I get it not to show thos characters? IE start with "top" and not "[?7ltop" [?7ltop - 09:56:47 up 6 days, 5:38, 2 users, load...
  8. john99999

    outlook.pst wont get smaller

    outlook.pst wont get smaller I have deleted all my emails but my outlook.pst file is still 1.9gb, why wont it reduce in size?
  9. john99999

    Does minicom need to be configured?

    Does minicom need to be configured? How do I configure it to access my serial device?
  10. john99999

    I get a Kernel Audit Support Unavaible error when booting after kernel

    I get a Kernel Audit Support Unavaible error when booting after kernel upgrade. What do I need to do to fix that error?
  11. john99999

    How can I go through a c-block of IP's and see which ones ping?

    How can I go through a c-block of IP's and see which ones ping? I want to find available IP's how can I use perl to print the ips in a cblock that dont ping?
  12. john99999

    How do I write to the beginning of a file?

    This will write to the end of a file but how do I write to the beginning of the file without losing the contents already in that file? open HTML, ">>c:/web/root/index.html";print HTML "Content-Type: text/html\n\n"; print HTML "<html><head></head><body>"; print HTML "<h2>Written by Perl!</h2>"...
  13. john99999

    How can I use qx[] with a variable?

    Really? qx executed the $do string in your perl script? Can you paste the full code? Mine is not working.
  14. john99999

    How can I use qx[] with a variable?

    $do="wget -O so.txt cnn.com/index.html"; $http=qx[$do]; This does not insert anything in so.txt.
  15. john99999

    Problem matching a patter

    What does the qx[ ] do?
  16. john99999

    Is there a way to output a currnent top and and then goto shell prompt

    Is there a way to output a currnent top and and then goto shell prompt automatically?
  17. john99999

    Problem matching a patter

    root@server1 [/]# cat ss4 #!/usr/bin/perl $a=`uptime`; $a =~ /[\d*],/; #echo "a = $a" if ( $a < 5.2 ){ print $a; } root@server1 [/]# ./ss4 1:04pm up 29 days, 18:41, 1 user, load average: 0.24, 0.33, 0.29 How do I get this to display only the 0.24 and not the full output of uptime?
  18. john99999

    How can I awk the current load average without a , ? 0.31 not 0.31,

    How can I parse the output of uptime natively within perl?

Part and Inventory Search

Back
Top