specifying an execution time


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users specifying an execution time
# 8  
Old 03-19-2008
if you are planning to use Perl, then check the module Proc::Simple , its fairly simple
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To take script execution time

Hello Guys, I would like to know is there a way to take the script execution time For e.g i am having a script.sh i need to write inside he script.sh like Start time : 10-Mar-2016 02:30:35 all code over here ... End time : 10-Mar-2016 03:30:32 Script start time - 02:30:35 ... (7 Replies)
Discussion started by: Master_Mind
7 Replies

2. UNIX for Dummies Questions & Answers

time taken for execution

how much time a particular command or shell script executed there is any command to know this thanks (5 Replies)
Discussion started by: tsurendra
5 Replies

3. Shell Programming and Scripting

KSH - Execution Time

Hello, I am on solaris 9 (KSH). I need to get the execution time of my script. I can't use the time command as I have to send by mail the result in a human readable way. So I am looking for a code to add to my script. The output result would be : Execution time :... (1 Reply)
Discussion started by: Aswex
1 Replies

4. Shell Programming and Scripting

get execution time of a script

Hi, I have a simple question. How can I get the execution time of a script and maybe put it in a variable? Another question. How can I get only time and not date and put it in a variable? I tried something with "date" command but with no success... If someone could help me... (8 Replies)
Discussion started by: Moumou
8 Replies

5. Shell Programming and Scripting

How the time of execution could be checked?

I need to see how much time my script uses to execute different part of processing. Is there anything to get it? I see the shell biultin variable $SECONDS, but I need much more precise statistic, in mili or micro seconds. Is there anything available for that? I use bash shell. ... (4 Replies)
Discussion started by: alex_5161
4 Replies

6. Shell Programming and Scripting

command execution time

Hi all, I want to display a progressbar depending upon the completion status of a command. I am coding from scratch as I dont want to use in place code. so Is there anyway of getting the progress of a command in percentage or in any other units while its running , is it possible using the top... (5 Replies)
Discussion started by: hashin_p
5 Replies

7. Shell Programming and Scripting

To reduce execution time

Hi All, The below script I run daily and it consumes 2 hours approx. In this I am calling another script and executing the same twice. Is the loop below the cause for the slow process?Is it possible to finetune the program so that it runs in a much faster way? The first script: #!/bin/ksh... (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

8. Shell Programming and Scripting

Estimated execution time

Hi All, One of my script runs (approximately) for 20 to 40 hours Is there any way in unix to find the estimated time required for a shell script(Cron job).ie to find the time required for execution even before the script is executed. Any discussion(pointers) regarding the same is most welcome. (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

9. UNIX for Dummies Questions & Answers

last execution time

is there a command in Solaris 8 that will show a particular scripts last execution time? (1 Reply)
Discussion started by: cubs0729
1 Replies

10. Programming

execution time

hi , i ve coded a C program in that im using malloc dynamically , it is being called many times in the program The program is to simulate jobs in manufacturing system. the execution time is increasing drastically as the number of jobs are increased. could any body tel what may be the problem... (2 Replies)
Discussion started by: ramki_rk
2 Replies
Login or Register to Ask a Question
sigsetjmp(3)						     Library Functions Manual						      sigsetjmp(3)

NAME
sigsetjmp, siglongjmp - Saves and restores the current execution context LIBRARY
Standard C Library (libc.a, libc.so) SYNOPSIS
#include <setjmp.h> int sigsetjmp( sigjmp_buf environment , int savemask); void siglongjmp( sigjmp_buf environment, int value); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: siglongjmp(), sigsetjmp(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies an address for a sigjmp_buf structure. Specifies whether the current signal mask should be saved. If this parameter contains a 0 (zero) value, sigsetjmp() does not save the signal mask. Otherwise, the function saves the signal mask. Specifies the value you want written to the execution context as the return value of the sigsetjmp() function. If you specify 0 (zero) in this parameter, the execution context contains a value of 1 as the sigsetjmp() return value. See the RETURN VALUES section for more information. DESCRIPTION
The sigsetjmp() and siglongjmp() functions are useful when handling errors and interrupts encountered in low-level functions of a program. The sigsetjmp() function saves the current stack context in the buffer specified by the environment parameter. If the value of the save- mask parameter is not 0 (zero), the sigsetjmp() function also saves the process' current signal mask as part of the calling environment. You use the buffer specified by the environment parameter in a later call to the siglongjmp() function. The siglongjmp() function restores the stack context and (optionally) signal mask that were saved by the sigsetjmp() function. After the siglongjmp() function runs, program execution continues as if the corresponding call to the sigsetjmp() function had just returned the value of the value parameter. The function that called the sigsetjmp() function must not have returned before the completion of the siglongjmp() function. Because it bypasses the usual function call and return mechanisms, the siglongjmp() function executes correctly in contexts of interrupts, signals, and any of their associated functions. However, if the siglongjmp() function is invoked from a nested signal handler (that is, from a function invoked as a result of a signal raised during the handling of another signal), the behavior is undefined. CAUTION
The results of the siglongjmp() function are undefined if one of the following is true: The siglongjmp() function is called with an envi- ronment parameter that was not previously set by the sigsetjmp() function The function that made the corresponding call to the sigsetjmp() function has already returned. If the siglongjmp() function detects one of these conditions, it calls the longjmperror() function. If longjmperror() returns, the program is aborted. The default version of longjmperror() displays an error message to standard error and returns. If you want your program to exit more gracefully, you can write your own version of the longjmperror() program. RETURN VALUES
After the siglongjmp() function is finished executing, program execution continues as if the corresponding call of the sigsetjmp() function just returned. In other words, the execution context saved by the corresponding sigsetjmp() function is in place and execution continues at the statement immediately following the call to the sigsetjmp() function. Part of that execution context is the return value from the sigsetjmp() function. When the sigsetjmp() function actually returns (before the call to the siglongjmp() function), that return value is 0 (zero). When the siglongjmp() function returns, the execution context con- tains a non-zero value as the return value from the sigsetjmp() function. The value you specify in the value parameter to the siglongjmp() function is written to the execution context as the return value for the sigsetjmp() function. You cannot cause the execution context to contain a 0 (zero) value for the sigsetjmp() return value. If you specify 0 in the value parameter, the execution context contains a 1 as the sigsetjmp() return value. RELATED INFORMATION
Routines: setjmp(3) Standards: standards(5) delim off sigsetjmp(3)