Search Results

Search: Posts Made By: jay02
2,103
Posted By jay02
Shell script emailing issue
Hi,

Im writing a shell script:

#!/bin/bash
#Send process which has exceeded 25%
#
echo 'pri pid user nice pcpu command' > /export/home/tjmoore/file2
#
if ps -eo...
8,506
Posted By jay02
Thankyou your help is much appreciated! :)
Thankyou your help is much appreciated! :)
8,506
Posted By jay02
does this help: bash-3.00# uname SunOS ...
does this help:
bash-3.00# uname
SunOS
bash-3.00# ps aux
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist...
8,506
Posted By jay02
when I input that command it comes back with this...
when I input that command it comes back with this

awk: syntax error near line 1
awk: illegal statement near line 1
ps: unknown output format: -o stat
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [...
8,506
Posted By jay02
Using top command to email if process is exceeding 25% and sending an email alert if so
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy