03-02-2012
top's an interactive program and its output notoriously hard to interpret programatically. Why not just use ps, which outputs in a tabular format and probably includes similar information?
What's your system?
What's ps aux look like for you?
This User Gave Thanks to Corona688 For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have an Solaris 8 machine running a managment application. One of the features of this application is to configure alarm forwarding to an email undress.
When i configured the application to do that, it asked me only about the recipient email address.
Quesiton: how to configure my Solaris 8... (7 Replies)
Discussion started by: bcheaib
7 Replies
2. UNIX for Dummies Questions & Answers
hi,
is there any possiblity to send email from the command prompt,
for eg
i want to send alert to any mail id
like /data/logs is 80% to my hotmail account , xxx@hotmail.com
is this really possible,,
if not, then what are the prerequistes need to do this (1 Reply)
Discussion started by: vasikaran
1 Replies
3. Shell Programming and Scripting
This is probably simple so forgive me...
I just want to find all files in a folder created within the last 10 minutes...
This is easy:
# find /home/folder -cmin -10
If the find command locates any files created in the last ten minutes I want it to send an email alert.
I just want to... (3 Replies)
Discussion started by: gardellap
3 Replies
4. Shell Programming and Scripting
Hi,
I would like to send an email with more than one attachement. I am using uuencode. I want to achive by suing uuencode. Also please let me know other ways.
-Thambi (7 Replies)
Discussion started by: thambi
7 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following:
tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail... (2 Replies)
Discussion started by: venush
2 Replies
6. AIX
Hi Guys,
I hope this is an easy question: I need some kind of script or an idea how I can convince syslog to send an email to root or someone else once cpu usage exceeds 95% or the memory consumption (maybe via AVM value times 4k) exceeds 85% of my real memory on any of my 700 lpars. We're... (4 Replies)
Discussion started by: zxmaus
4 Replies
7. Shell Programming and Scripting
Hi All,
Solaris
Bash v3x
I have a script that accepts an error code, and if the error code is not 0 then an email is sent using mailx to details the error.
I want to be able to implement the functiuonlity whereby i can send the email in a background process so the script can continue with... (3 Replies)
Discussion started by: satnamx
3 Replies
8. Linux
I have used an already-built ActiveX control to send email from my asp web pages. One of the parameters I fill is FromName which defines the tittle the recipient will see in the From entrance in his Inbox.
Now Iīm trying to use mail to send an email from a Shell but I havenīt found the... (1 Reply)
Discussion started by: RandomAccess
1 Replies
9. Shell Programming and Scripting
Hi all
i want to send the output of a command by email, i have done this
<comand> | mail -s <subject> <email address>
which works well, but if the command retunrs noting then i just get a blank email, is there a way to stop this
thanks
Adam (4 Replies)
Discussion started by: ab52
4 Replies
UCFQ(1) User Contributed Perl Documentation UCFQ(1)
NAME
ucfq - query the ucf database
SYNOPSIS
usage: ucfq [options] (/path/to/file|package)[/path/to/file|package ...]
OPTIONS
--help h Print out a usage message.
--debug -d Turn on debugging mode.
--verbose -v Make the script more verbose..
--with-colons -w
Normally, the script presents the information in a human readable tabular format, but that may be harder for a machine to parse. With
this option, the output is a compact, colon separated line, with no dividers, headers, or footer.
--state-dr dir
Set the state directory to "/path/to/dir" instead of the default "/var/lib/ucf". Used mostly for testing.
DESCRIPTION
This script takes a set of arguments, each of which is a package name (and thus does not contain a /) or a full path to a configuration
file, and outputs the associated package, if any, if the file exists on disk, and whether it has been modified by the user. The output is
either a human readable tabular form, or a compact colon-separated machine friendly format.
This script can potentially be used in package "postrm" scripts during purge to query the system for configuration files that may still
exist on the system, and whether these files have been locally modified by the user -- assuming that the package registered all the config-
uration files with ucf using "ucfr".
CAVEATS
This is very inchoate, at the moment, and needs testing.
BUGS
None Known so far.
AUTHOR
Manoj Srivastava <srivasta@debian.org>
COPYRIGHT AND LICENSE
This script is a part of the Ucf package, and is
Copyright (c) 2006 Manoj Srivastava <srivasta@debian.org>
This program is free software; you can redistribute it and / or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.8.8 2006-04-16 UCFQ(1)