hi CaKiwi, sorry for my very bad english.
ok, i want to produce 1 summary file, which is output from 2 commands (actualy "sar" command).
output file1 :-
time %usr %sys %wio %idle
05:05 50 47 15 5
05:10 45 30 25 15
05:20 30 27 35 15...
hi all gurus,
I run 2 command to produce 2 outputfiles and want to merge together with some calculation:
1) command1 :-
time %usr %sys %wio %idle
05:05 50 47 5 5
...
...
2) command2 :-
user
54
45
65
user
load
min
what I want to do is to...
hi all,
i got crontab file like this:
50 1 * * * * /usr/local/bin/script1
50 2 * * * * /usr/local/bin/script2
50 3 * * * * /usr/local/bin/script3
..
..
.. and more.
question:-
1) how from shell script file, i add # to line 1 and line3 in first run?
2) remove # from line 1 and line 3...
I got script
.....
lineno=0
syscommnand | awk 'NR>$lineno && NR<$lineno-2 {print $2, $6)'
let lineno=$lineno+10
...
but the script doesn't work b'cause the $lineno in "NR", how can I pass the variable to NR? or can someone give me better code b'cause I am new to awk. thanx in very...
please anybody tell me, how to read parameter form cgi files like below:
http://host/cgi-bin/print?a=1
and how to process them in function
I just need example. thanx in andvance
I am just join this group, and this is my 1st post/?
I have a script like this (ftptkf.sh):
#!/usr/bin/sh
echo "Password \c: "
read pass
ftp -inv <<END
open 172.18.10.101
user `echo $LOGNAME` $pass
ls
bye
END
exit 0
this script I want to call from another system...
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.