When we have this sort of trouble I run the following:
ps -efo pcpu,pid | awk '{if ($1 >= 10) print $0}'
This first command will give you the pid's of "hungry" processes.
Next I run:
for each_pid in `ps -efo pcpu,pid | awk '{if ($1 >= 10) print $2 }'`
do...
jojo11, I can empathize with your situation. We have also experienced trouble upgrading some of our servers running just a single ISA voice card and RAID-5 all while Running SCO 5.0.4. We looked at switching them over to PCI but the cost was astronomical. Although I do not know of any boards...
Here is what I use to FTP:
ftp -inv <<!
open <IP Address or system name from host file>
user <username> <password>
<any unix ftp commands....>
quit
!
The "<<!" signals the unix shell for the beginning of the FTP script, and the "!" signals the end. Text enclose within <>...
What I would do is:
# grep for olddomain in all files and print only file names to variable each_file
for each_file in `fgrep -l olddomain *`
do
# sed olddomain to newdomain for each filename in variable each_file
sed 's/olddomain/newdomain/g' $each_file > ${each_file}.tmp
mv...
When it come to UNIX and I would imagine LINUX (since it was built from UNIX), memory management and allocation can be tricky. Since UNIX constantly spawns processes and those processes spawn processes and so on... an issue arrises where, depending on the system usage, UNIX starts paging and...
Normally to locate a group of files from a specific date range I would use the find command, however in this situation I think a grep would work better.
ls -l | grep "Sep [1-7]" > output file
Hope that helps
aithosn8
aithosn8@lycos.com
I have found an answer for my own question. To run a system command from inside an awk program simply follow the syntax below where command is the system command being run.<br><br> system("command")<br><br> ~aithosn8
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.