Hi RUdic,
Thanks for the reply. Sorry for less details. but return output like above for below filter where I only want to capture the process which use more than 5% CPU usage.
You say that you want to capture processes that use more than 5% of your system's available CPU power and then you show us code that captures processes that are sleeping (not using any CPU) 5% or more of the time.
Do you not understand that sleeping at least 5% of the time does not mean that that process is using 5% of your CPU. And, in particular, if the value in field 9 (sleeping) is 100 (which is greater than 5), it isn't using any CPU at all?
Are we also to assume that you want the headings removed from the table that RudiC's code provided. "SLP" when converted to a number in awk is 0 (which is less than 5)?
If you were to change the line:
in RudiC's code to:
would that give you something you could use?
Of course, if you are running this on a Solaris/SunOS system, you need to use /usr/xpg4/bin/awk or nawk instead of awk (unless /usr/xpg4/bin comes before /usr/bin in $PATH).
And, as was noted in the other thread you started, basing any decision on one sample of prstat output is dangerous.
Hi,
i want to create a script which should do the following:
1) ping the remote servers and email the hosts which are down
2) netstat on port x on 2 server and email the result too.
I want both results to be sent in the same email.
I have few ideas but i can't finish it.
Here... (4 Replies)
Hi All,
I'm trying to send some file which generated by script to my email. when I run the script I'm getting an email. Thats fine. But it seems to be all messed up like below
Memory Status on ServerA: Mem: 3867444k total, 862680k used, 3004764k free, 54456k buffers!! CPU Status on ServerA:... (4 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
Hello Gurus,
I have one table which consists of two field:-
PROG_NAME EMAIL
xxxx email1,email2,email3
yyyy email4,email1,email2
I want to to send mails by using mailx command.
But how do I get each and every mail ids from table against... (4 Replies)
hello
can anyone debug these lines
cd /usr/local/scripts
./build update
./build versions | grep available
if
then
mail -s "update for server `hostname`" $EMAIL
else
echo -e "$YELLOW No update $RESET"
fi
echo "Please press a key - Back to main menu . . ." ; read
but... (3 Replies)
Hi
I need help to do this. This is the output of qshape:
user$ qshape deferred|head
T 5 10 20 40 80 160 320 640 1280 1280+
TOTAL 0 0 0 0 0 0 0 0 0 0 0
T stands for minutes elapsed and TOTAL... (1 Reply)
I have written a shell script that calls below sql file. It is not sending the query data in table in the body of email.
spool table_update.html;
SELECT * FROM PROCESS_LOG_STATS where process = 'ActivateSubscription';
spool off;
exit;
Please use code tags next time for your code and data.... (9 Replies)
HI Team,
I am working on reading hive table and send email in email body using shell script, can you please help on fixing the errors: I have 6 columns in my hive table and trying to send the email in the mail body.
below script:
#!/bin/bash
hive -e 'SELECT count(*) from db.table' >... (4 Replies)
Discussion started by: Mi4304
4 Replies
LEARN ABOUT SUSE
calibre-smtp
CALIBRE-SMTP(1) calibre CALIBRE-SMTP(1)NAME
calibre-smtp - part of calibre
SYNOPSIS
calibre-smtp [options] [from to text]
DESCRIPTION
Send mail using the SMTP protocol. calibre-smtp has two modes of operation. In the compose mode you specify from to and text and these are
used to build and send an email message. In the filter mode, calibre-smtp reads a complete email message from STDIN and sends it.
text is the body of the email message. If text is not specified, a complete email message is read from STDIN. from is the email address
of the sender and to is the email address of the recipient. When a complete email is read from STDIN, from and to are only used in the SMTP
negotiation, the message headers are not modified.
Whenever you pass arguments to calibre-smtp that have spaces in them, enclose the arguments in quotation marks.
OPTIONS --version
show program's version number and exit
-h, --help
show this help message and exit
-l, --localhost
Host name of localhost. Used when connecting to SMTP server.
-o, --outbox
Path to maildir folder to store failed email messages in.
-f, --fork
Fork and deliver message in background. If you use this option, you should also use --outbox to handle delivery failures.
-t, --timeout
Timeout for connection
-v, --verbose
Be more verbose
COMPOSE MAIL
Options to compose an email. Ignored if text is not specified
-a, --attachment
File to attach to the email
-s, --subject
Subject of the email
SMTP RELAY
Options to use an SMTP relay server to send mail. calibre will try to send the email directly unless --relay is specified.
-r, --relay
An SMTP relay server to use to send mail.
--port Port to connect to on relay server. Default is to use 465 if encryption method is SSL and 25 otherwise.
-u, --username
Username for relay
-p, --password
Password for relay
-e, --encryption-method
Encryption method to use when connecting to relay. Choices are TLS and SSL. Default is TLS.
SEE ALSO
The User Manual is available at http://calibre-ebook.com/user_manual
Created by Kovid Goyal <kovid@kovidgoyal.net>
calibre-smtp (calibre 0.6.53) July 2010 CALIBRE-SMTP(1)