10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm a newbie to shell scripting, I was given this script to modify. This script that monitors when CPU Usage is too high based off the top command. The comparison is not working as it should. Its comparing a decimal to a regualar interger. When it send me an email, it send an email and ignores the... (21 Replies)
Discussion started by: mhannor
21 Replies
2. UNIX for Dummies Questions & Answers
Hi,
A basic sed question.
I have a set of files. In each file there is a number that I want replaced. For example, if I run sed I should get the following:
% cat test2.txt
#goofy//171.00
goofy 171.00
% sed -i 's/171/xxx/g' test2.txt
% cat test2.txt
#goofy//xxx.00
goofy xxx.00
... (2 Replies)
Discussion started by: pc2001
2 Replies
3. Infrastructure Monitoring
I need to record min and max resources for RAM, & CPU for each command's execution in a shell script. Maybe going in details I would also be interested to capture plots with resource usage i.e.start to end of individual command with respect to time in a shell script.
Please share ideas. (0 Replies)
Discussion started by: vaibhavvsk
0 Replies
4. Shell Programming and Scripting
Hi All,
I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide
which cpu number (column 2) has maximum value (column 6).
Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies
5. Shell Programming and Scripting
Hello,
I begin to write my first shell script, but I am totally lost, hope you can help me.
I'd like to write a script with some conditions and multiples usages:
./myscript.sh -i <host>
or
./myscript.sh -e <host>
Have you some suggestion, because I am really lost, I try to do something... (12 Replies)
Discussion started by: Francesco
12 Replies
6. Shell Programming and Scripting
Suppose im in a directory A. which has sub-directories x/y/z m/n/p etc. Iam only considered with those which have a file netl.oa at the lowermost level. So i used the find command which gives me a list in the form
./abc/def/ghi/jkl/netl.oa
and so on
Now i want the names abc def jkl and ghi. My... (3 Replies)
Discussion started by: sid.verycool
3 Replies
7. Shell Programming and Scripting
I need help on how to connect remote systems through ssh command in while loop of shell script. I was able to connect one remote system using ssh from shell script. Please find sample code snippet as given below…..
ssh "root@148.147.179.100" ARG1=$rpmFileName 'bash -s' <<'ENDSSH'
... (5 Replies)
Discussion started by: rajesh.tulluri
5 Replies
8. Shell Programming and Scripting
I'm trying to count and display the variables on a command line
#!/bin/ksh
$# argv
from command line: tryit2 this is a test
returns : tryit2: 4: not found. (1 Reply)
Discussion started by: Bperl1967
1 Replies
9. Shell Programming and Scripting
Hi All,
How could I use telnet to connect to Primary Host in the below shell script:
Could I use:
(
echo user
sleep 2
echo password
sleep 2
echo "ls ~"
sleep 2
echo "exit"
) | telnet hostname
... (1 Reply)
Discussion started by: a1_win
1 Replies
10. Shell Programming and Scripting
hello unix-people.
can u please tell me how i can get the current bandwidth usage of my machine on shell into variables?
thanks a lot (2 Replies)
Discussion started by: scarfake
2 Replies