Sponsored Content
Full Discussion: Minutes a program runs.
Top Forums UNIX for Advanced & Expert Users Minutes a program runs. Post 302140821 by Cameron on Tuesday 16th of October 2007 08:13:35 AM
Old 10-16-2007
Thanks for the example Ygor. Smilie

I'd been using a simple "...`expr ${LOOPREQD} \* ${LOOPSLEEP} / 60` Minute/s." to do similar, though not entirely accurate. (was indicative to a degree)

Is there a listing anywhere of built-in variables for Ksh ??
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert minutes to hours, minutes, seconds

How would you convert lets say a 1000 minutes to hours, minutes, seconds (1 Reply)
Discussion started by: Vozx
1 Replies

2. HP-UX

why does my program runs in conflicting mode?

my pragram runs with 3 threads, 2 work threads, one main thread. the 2 work threads run with the same mode and the same code. but now, one of the work thread can't work, and it uses the cpu more than 80%, sometimes uses 100% cpu resource. the another work thread work well. when I viewed the HP... (2 Replies)
Discussion started by: happylife365
2 Replies

3. Shell Programming and Scripting

Check if a program runs on unix

Hi guys, I had a question last week where I asked how I check from a website hosted on windows if a process is running on on of our unix servers. Vino and Shell Life kindly replied with a perl script: if qm') -gt 0 ] ; then echo "Site is up" else echo "Site is down." # start the... (1 Reply)
Discussion started by: drchris
1 Replies

4. Programming

getting Segmentation Fault (core dumped) error but Program runs fine.

i am executing following program int main() { char str; FILE * fp; int i=0; ... (4 Replies)
Discussion started by: bhavesh.sapra
4 Replies

5. Shell Programming and Scripting

crontab runs only one line in iterated program

I have a crontab as below: PATH=/usr/local/sbin:/bin/:..... etc etc 0 8 * * * /home/user/jobs/poll.sh 2>/dev/null 1>/dev/null Now the script poll.sh is called at correct time and executes. This is how poll.sh looks like #!/bin/bash... (2 Replies)
Discussion started by: chakrapani
2 Replies

6. Homework & Coursework Questions

create a program that runs two processes linked oven

I need help program in C... :create a program that runs two processes linked oven (1 Reply)
Discussion started by: gizmo16
1 Replies

7. UNIX for Beginners Questions & Answers

How to convert days hours minutes seconds to minutes?

Hi, please help with below time conversion to minutes. one column values: 2 minutes 16 seconds 420 msec 43 seconds 750 msec 0 days 3 hours 29 minutes 58 seconds 480 msec 11 seconds 150 msec I need output in minutes(total elapsed time in minutes) (2 Replies)
Discussion started by: ramu.badugula
2 Replies

8. Shell Programming and Scripting

Grep a log file for the last 5 minutes of contents every 5 minutes

Hi all, System Ubuntu 16.04.3 LTS i have the following log INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042 INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies

9. UNIX for Beginners Questions & Answers

Where can I find the program that runs the -wc command?

Hey guys, I was wondering. When I enter a command in the terminal -wcl for a word count, where is that program located in the kernel? (7 Replies)
Discussion started by: Circuits
7 Replies
DWARF_ADD_EXPR_ADDR(3)					   BSD Library Functions Manual 				    DWARF_ADD_EXPR_ADDR(3)

NAME
dwarf_add_expr_addr, dwarf_add_expr_addr_b -- add a DW_OP_addr location expression LIBRARY
DWARF Access Library (libdwarf, -ldwarf) SYNOPSIS
#include <libdwarf.h> Dwarf_Unsigned dwarf_add_expr_addr(Dwarf_P_Expr expr, Dwarf_Unsigned address, Dwarf_Signed sym_index, Dwarf_Error *err); Dwarf_Unsigned dwarf_add_expr_addr_b(Dwarf_P_Expr expr, Dwarf_Unsigned address, Dwarf_Unsigned sym_index, Dwarf_Error *err); DESCRIPTION
Function dwarf_add_expr_addr_b() adds a DW_OP_addr location expression to the location expression descriptor referenced by argument expr. Argument expr should reference a location expression descriptor allocated using the function dwarf_new_expr(3). Argument address specifies the operand, a relocatable address value. Argument sym_index specifies the ELF symbol index of the symbol to be used for relocation. If argument err is not NULL, it will be used to store error information in case of an error. Function dwarf_add_expr_addr() is deprecated. It is similar to function dwarf_add_expr_addr_b() except that it cannot handle all possible symbol index values. RETURN VALUES
On success, these functions return the size in bytes of the location expression byte stream generated. In case of an error, these functions return DW_DLV_NOCOUNT and set the argument err. ERRORS
These functions can fail with: [DW_DLE_ARGUMENT] Argument expr was NULL. [DW_DLE_MEMORY] An out of memory condition was encountered during the execution of the function. SEE ALSO
dwarf(3), dwarf_add_AT_location_expr(3), dwarf_add_expr_gen(3), dwarf_expr_current_offset(3), dwarf_expr_into_block(3), dwarf_new_expr(3) BSD
September 9, 2011 BSD
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy