There are a couple of things wrong with your script. You never decrement the the sleep interval and so never exit the while loop. You also were incorrectly testing the file for changes. See how I have done it below.
Finally you need to figure out what you information you want to email to yourself. mail $LOGNAME
does not mail anything.
Hello all. Let me start off by saying I know a little more then it seems by me asking this question... here goes
I have an old 486 box and I want to start messing around with unix. I've been taking classes for 3 or 4 years in c programming in unix, so I am used to the commands and such, but I... (1 Reply)
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Hello there
Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe).
I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
I have a csv file with 3 columns. Column 1 is a date "mm/dd/yyyy", column 2 is a dollar amount (e.g. "100.00") & column 3 in a description of where the transaction took place (e.g. "CHECK CRD PURCHASE 10/07 ACME INC USA")
so...
"10/01/2009","100.00", "CHECK CRD PURCHASE 10/07 ACME INC USA"
I... (1 Reply)
No doubt these questions have been answered many times, but I struggled to find them - sorry. 2 questions:
1. I wish to read in a file one line at a time and do 'stuff' with it, such as:
file="tst2"
while IFS= read -r line
do
echo `wget -qO -... (3 Replies)
Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date :
for i in `ls $replog/*.gz`
do
echo " $i "
`echo $i date +%d:%m:%Y`
`echo $datee `>> $replog/mrnet.log
mv $i /var/log/vieux-logs
done
I need to echo... (10 Replies)
Hi All,
I am trying to monitor CPU load of few processes, with the same name.
The output that I get from top is the following
28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505
27589 root 20 0 1060m 23m... (3 Replies)
Hello,
I am creating a new disk using the following command:
dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k
after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB)
ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
10 Replies
LEARN ABOUT HPUX
emsweb
emsweb(1M)emsweb(1M)NAME
emsweb - starts the HP-UX Event Monitoring Service tool (a Web interface)
SYNOPSIS
[ ] [ ]
DESCRIPTION
The HP-UX Event Monitoring Service tool ( ) is used to monitor resource instances and manages requests created on these instances.
The HP-UX Event Monitoring Service tool provides both Web-based and terminal user interface. The Web-based interface is launched through
the HP System Management Homepage.
Superuser privileges are required to access the HP-UX Event Monitoring Service tool. A user who does not have superuser privileges has
read-only access to the requests area in the HP-UX Event Monitoring Service tool and cannot modify requests.
An attempt will be made to connect to a Mozilla/Netscape Web browser running on the X server defined by the DISPLAY environment variable.
If a running Mozilla/Netscape client is found, it will be used, otherwise a new Mozilla/Netscape session will be initiated. This will only
happen if the Mozilla/Netscape process is running in the same system as that referenced by the DISPLAY variable, unless the -F option is
used.
Note: By default, the HP-UX Event Monitoring Service tool (emsweb) invokes the Mozilla Web browser. If you want to support any other
browser (Netscape), set the $BROWSER environment variable as shown below:
The terminal user interface is invoked if any of the following conditions are true:
o The command is invoked with the option.
o The environment variable is not set.
The Web-based interface is launched if all the following conditions are true:
o The command is invoked with option.
o The environment variable is set.
o The command is available on the system.
If the Web-based interface cannot be launched, invokes the terminal user interface.
Options
recognizes the following options:
Forces a client browser to be used in less secure ways.
The option forces the client browser to be used or started, even when the X-traffic between the X-server and the Mozilla
browser is not secure.
Use this option only when you are sure the network traffic between the host where Mozilla is running and the host in the
DISPLAY variable is secure.
If cannot start the Web browser, the terminal interface is started.
When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used.
If a privileged user (root) executes the
command with the option, a temporary login bypass key is generated. The bypass key enables the user to access the Web
interface without having to provide login information again.
When the HP-UX Event Monitoring Service Web interface is invoked by SAM, the option is used.
Opens the terminal interface for managing requests created to monitor resource instances regardless of the current setting of the
environment variable.
You can also start the HP-UX Event Monitoring Service tool using one of the following methods:
o Invoke and select the Event Monitoring Service (character mode) functional area to launch the terminal user interface and the
Event Monitoring Service (Web-based Interface) to launch the Web-based tool
o Invoke the HP-UX Event Monitoring Service tool Web interface by typing the URL in the address bar of your browser, where hostname
is the name of the server
o Launch the HP-UX Systems Insight Manager on the server and select the Event Monitoring Service tool from the Configure -> HP-UX
Configuration menu
Online Help
After the HP-UX Event Monitoring Service tool is started, the online help provides details on how to use the tool.
RETURN VALUES
Upon completion, emsweb returns one of the following values:
o 0 Successful
o 1 An error occurred
AUTHOR
was developed by Hewlett-Packard.
SEE ALSO emscli(1M), resls(1), resdata(1)emsweb(1M)