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