10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to run a alarm.sh using crontab, which play a song as
an alarm at 6.15 am. I'm using amixer so that volume increases by 10% in every loop.
My script is the following.
SHELL=/bin/bash
PLAYER=/usr/bin/mplayer
SONG=/home/hbar/Music/song.mp3
DISPLAY=:0.0
15 06 * * *... (10 Replies)
Discussion started by: hbar
10 Replies
2. What is on Your Mind?
Hi Friends
any know how became a friend in this Android Programming Language (0 Replies)
Discussion started by: ljarun
0 Replies
3. Shell Programming and Scripting
Hi All,
I am monitoring batch Processes running in UNIX environment.
I use PuTTy to monitor the process running.
I have to continuously monitor and look on the screen if some error has come or not.
If an error comes FAILURE word is displayed instead of SUCCESS as shown below on the... (2 Replies)
Discussion started by: sampandey31
2 Replies
4. Solaris
Hello,
how can we determine alarm threshold from sysedge in a solaris box? can anybody please help me?
Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies
5. Programming
I'm writing a function right now, and I want to set an alarm to avoid a timeout, here's the general idea of my code:
int amt = -2;
alarm(10);
amt = read(fd, &t->buf, TASKBUFSIZ - tailpos); //do a read
when the alarm goes off, i want to check the value of "amt"
... (1 Reply)
Discussion started by: liaobert
1 Replies
6. Shell Programming and Scripting
Hi members, I am working in WebSphere in Unix environment. we are working with 500 odd servers and most of the times processes got down. Can i have any shell script through whih some popup with alarm get raised whenever some server get down. kindly help.. Thanks Rishi (1 Reply)
Discussion started by: rishi.madan
1 Replies
7. Shell Programming and Scripting
Hey,
I want to ask a simple Question....
How would I be able to come to know that files/directoires in a Parent directory has been accessed (means contents of the file has been just viewed) by the user(s) in a group ? and mail the name(s) of those files/directories which has been accessed... (16 Replies)
Discussion started by: varungupta
16 Replies
8. AIX
Hey,
I want to ask a simple Question....
How would I be able to come to know that files/directoires in a Parent directory has been accessed (means contents of the file has been just viewed) by the user(s) in a group ? and mail the name(s) of those files/directories which has been accessed... (1 Reply)
Discussion started by: varungupta
1 Replies
9. Shell Programming and Scripting
I am trying to write a signal to exit when a process times out. What I have come up with from poking around the web is this.
#!/usr/bin/perl
eval {
local $SIG{ALRM} = sub { die "alarm clock restart" };
alarm 10;
open(DSMADMC, "dsmadmc -se=tsmpc1 -id=XXXXX... (2 Replies)
Discussion started by: reggiej
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
when I execute a script on unix AIX, I've got an error message:
"Execution: 85328 Signal d'alarme".
If I edit this file with "vi", I ve got the same error after a while (about 1 minute).
If I try with another user I still have the problem.
But if I rename this file, no problem.
My... (5 Replies)
Discussion started by: cgsteph
5 Replies
hpialarms(1) OpenHPI hpialarms(1)
NAME
hpialarms - A openhpi sample application that shows "Alarm Control" management instruments
SYNOPSIS
hpialarms [-D id] [-N host[:port]] [-C <cfgfile>]
[-a 1|0][-b 1|0][-c 1|0][-m 1|0][-n 1|0][-p 1|0][-i n][-o][-X][-h]
hpialarms [--domain=id] [--host=host[:port]] [--cfgfile=file]
[--diska=1|0] [--diskb=1|0] [--critical=1|0] [--major=1|0]
[--minor=1|0] [--power=1|0] [--chassisid=n] [--all] [--debug] [--help]
DESCRIPTION
hpialarms walks the RPT (Resource Presence Table) for resources that have "Alarm Control" management instruments (SAHPI_CTRL_LED).
If no domain or host is selected, hpialarms uses the default domain as specified in the openhpiclient.conf file.
OPTIONS
(No Option) Display alarm states
Help Options:
-h, --help
Show help options
Application Options:
-c 1|0, --critical=1|0
Set critical alarm on|off
-m 1|0, --major=1|0
Set major alarm on|off
-n 1|0, --minor=1|0
Set minor alarm on|off
-a 1|0, --diska=1|0
Set diska alarm on|off
-b 1|0, --diskb=1|0
Set diskb alarm on|off
-p 1|0, --power=1|0
Set power alarm on|off
-i n, --chassisid=n
Set chassis id on for n seconds
-o, --all
Set all alarms off
-D nn, --domain=nn
Select domain id nn
-X, --debug
Display debug messages
-N "host[:port]", --host="host[:port]"
Open session to the domain served by the daemon at the specified URL (host:port). This option overrides the OPENHPI_DAEMON_HOST and
OPENHPI_DAEMON_PORT environment variables. If host contains ':' (for example IPv6 address) then enclose it in square brackets. For
example: "[::1]" or "[::1]:4743".
-C "file", --cfgfile="file"
Use passed file as client configuration file. This option overrides the OPENHPICLIENT_CONf environment variable.
SAMPLE OUTPUT
hpialarmpanel ver 0.6
RptInfo: UpdateCount = 5, UpdateTime = 8a2dc6c0
rptentry[0] resourceid=1 tag: Mullins
RDR[45]: ctltype=2:1 oem=0 Chassis Identify Control
RDR[48]: ctltype=0:1 oem=10 Front Panel Power Alarm LED state = off
RDR[51]: ctltype=0:1 oem=13 Front Panel Minor Alarm LED state = ON
RDR[46]: ctltype=0:0 oem=0 Cold Reset Control
RDR[49]: ctltype=0:1 oem=11 Front Panel Critical Alarm LED state = off
RDR[50]: ctltype=0:1 oem=12 Front Panel Major Alarm LED state = off
SEE ALSO
hpi_shell
hpidomain hpigensimdata hpireset hpitop
hpiel hpiinv hpisensor hpitree
hpievents hpionIBMblade hpisettime hpiwdt
hpifan hpipower hpithres hpixml
ohdomainlist ohhandler ohparam
AUTHORS
Authors of this man page:
Peter D Phan (pdphan@users.sourceforge.net)
Ulrich Kleber (ulikleber@users.sourceforge.net)
Anton Pak (avpak@users.sourceforge.net)
3.2.1 2011-09-20 hpialarms(1)