Sponsored Content
Top Forums Shell Programming and Scripting Measure thread execution (in C, unix) Post 302507610 by rob171171 on Thursday 24th of March 2011 10:25:44 AM
Old 03-24-2011
no I dint but I will do now, run and get back to you..thanks.

Does syntax change for each line?

($$) Start S0 ($#) $@" >> /<filename>
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CPU load unit of measure?

If unix says my cpu load is 2.15 exactly what does that mean? --Jason (1 Reply)
Discussion started by: Mac J
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

How to post a new thread (Regarding Unix related doubts) in Unix Forums

How to post a new thread (Regarding Unix related doubts) in Unix Forums. I registered my id but I am unable to post my Questions to Forum. Thanks & Regards, indusri (1 Reply)
Discussion started by: indusri
1 Replies

3. Shell Programming and Scripting

Is there a command to measure compile speed?

Hello Ive written 2 programs in shell and I need to compare their speed (Compile) against one another. what methods could I go about doing this? Is there a feature in shell do accommodate this? (2 Replies)
Discussion started by: Darklight
2 Replies

4. UNIX for Advanced & Expert Users

How to measure g++ performance?

I am working on an application with some rather interesting build performance issues. If we build on Solaris/Linux x86/AMD64 the build is rather fast, but it takes more than five times as long on our Solaris Sparc servers (single-threaded builds on the workstations, but multi-threaded on the... (5 Replies)
Discussion started by: Elric of Grans
5 Replies

5. Solaris

What exactly does 'zpool iostat' measure?

hi there, i'd like to know what exactly zpool's iostat (-v) output measure, especially the writes. Is it only the writes to the ZIL or all writes (including commmits) to the disks? if anyone knows, that'd be helpful roti (1 Reply)
Discussion started by: rotunda
1 Replies

6. UNIX for Advanced & Expert Users

Implementing thread in UNIX

Hi For our load testing , we are using stubs (unix shell script) which send the response to the request coming from the application. As the unix stub is single threaded , it is responding to only one request whereas multiple requests come in parallely. I haven't worked on thread concepts... (5 Replies)
Discussion started by: jenanee
5 Replies

7. AIX

How to measure waiting time in run queue?

Hello guys, I am doing a performance analysis on one of our psystem. Most of time I am using Nmon analyser to do my trend graph. But I can't find any help with it. We are interesting in the time spend by tasks in Aix run queue. After looking the Aix documentation, I am pessimist to find any... (3 Replies)
Discussion started by: GiiGii
3 Replies

8. Solaris

How to measure IOPS?

Hi I have a system running solaris 10, and I intend to use a NetApp as its storage system. The application requires a throughput between the server and the storage 7000 disk IOPS (random IO sustained throughput with response time of 20 mili second and 16k block size). How to make sure that I... (6 Replies)
Discussion started by: fretagi
6 Replies

9. Shell Programming and Scripting

Python Thread Execution Issue . . .

Greetings! I set up a basic threading specimen which does the job:#!/usr/bin/python import threading class a(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self): print("thread a finished") class b(threading.Thread): ... (0 Replies)
Discussion started by: LinQ
0 Replies
UPSSCHED.CONF(5)					      Network UPS Tools (NUT)						  UPSSCHED.CONF(5)

NAME
upssched.conf - Configuration for upssched timer program DESCRIPTION
This file controls the operations of upssched(8), the timer-based helper program for upsmon(8). CONFIGURATION DIRECTIVES
CMDSCRIPT scriptname Required. This must be above any AT lines. This script is used to invoke commands when your timers are triggered. It receives a single argument which is the name of the timer that caused it to trigger. PIPEFN filename This sets the file name of the FIFO that will pass communications between processes to start and stop timers. This should be set to some path where normal users can't create the file, due to the possibility of symlinking and other evil. NOTE: if you are running Solaris or similar, the permissions that upssched sets on this file are not enough to keep you safe. If your OS ignores the permissions on a FIFO, then you MUST put this in a protected directory! Another thing to think about: upsmon doesn't run the NOTIFYCMD as root unless you run it with -p. So, upssched will probably run as nobody or similar unless you give upsmon another user with -u or RUN_AS_USER in upsmon.conf(5). Either way, you have to set PIPEFN to something that ONLY the monitoring upsmon user can access. The stock version of this file ships with PIPEFN disabled to make you visit this portion of the documentation and think about how your system works before potentially opening a security hole. AT notifytype upsname command Define a handler for a specific event notifytype on UPS upsname. upsname can be the special value * to apply this handler to every UPS. This will perform the command command when the notifytype and upsname match the current activity. Possible values for command are: START-TIMER timername interval Start a timer of interval seconds. When it triggers, it will pass the argument timername as an argument to your CMDSCRIPT. Example: Start a timer that'll execute when any UPS (*) has been gone for 10 seconds AT COMMBAD * START-TIMER upsgone 10 CANCEL-TIMER timername [cmd] Cancel a running timer called <timername>, if possible. If the timer has passed then pass the optional argument <cmd> to CMDSCRIPT. Example: If a specific UPS (myups@localhost) comes back online, then stop the timer before it triggers AT COMMOK myups@localhost CANCEL-TIMER upsgone EXECUTE command Immediately pass <command> as an argument to CMDSCRIPT. Example: If any UPS (*) reverts to utility power, then execute 'ups-back-on-line' via CMDSCRIPT. AT ONLINE * EXECUTE ups-back-on-line Note that any AT that matches both the notifytype and the upsname for the current event will be used. SEE ALSO
upssched(8), upsmon(8) Internet resources: The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ NUT mailing list archives and information: http://lists.exploits.org/ Wed Oct 16 2002 UPSSCHED.CONF(5)
All times are GMT -4. The time now is 12:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy