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 dencom 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 ampra2

  1. ampra2

    SNMP Extend with Variable as Args

    Hi all, I'm using SNMP extend to run a script on remote machines. I found it worked perfectly for a script which needs no args on calling. I tried to call a script using static args and it worked as good as the previous one. But when I tried to call a script which args is a variable, it didn't...
  2. ampra2

    awk to execute external script and write the ouput to separated files

    Hi PHV, with system("sendsnmp.sh "$8" "$1) I get this error message: sh: sendsnmp.sh: command not found sh: sendsnmp.sh: command not found sh: sendsnmp.sh: command not found But it works when I change it to system("./sendsnmp.sh "$8" "$1) Thanks. Now, I'm working on the time difference...
  3. ampra2

    awk to execute external script and write the ouput to separated files

    Hi PHV and feherke, This is my current script. I've made a bit change so it doesn't exactly the same thing with my description previously. #!/bin/sh awk ' function timedif(date,time) { # get current system time # calculate the difference (sec) # convert the time difference format (hh:mm:ss)...
  4. ampra2

    awk to execute external script and write the ouput to separated files

    I need help on AWK scripting to do some actions as follows: - Parsing File, - Do some calculation, or Execute External Program, - Write the Output into Separated Files I have an input file (say, input.txt) consists of this data: 834608 0.50500 openssl-sp ampra2 r 04/18/2011...

Part and Inventory Search

Back
Top