Sponsored Content
Top Forums Shell Programming and Scripting This is driving me nuts error on line 17 Post 302926354 by osdustin on Sunday 23rd of November 2014 02:37:17 PM
Old 11-23-2014
thank you for the help will look into a better book. Script writing has been my weak point, but in todays market it is needed.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix driving me crazy

:( :confused: what is performed by the following unix command: grep -v Jane project1.txt and grep ' 5\..' janet.txt (1 Reply)
Discussion started by: Tendernisin
1 Replies

2. Shell Programming and Scripting

Simple test driving me mad!

Hi all, I have been writing a script to automate some work for myself and have come accross a problem. I cannot understand why it doesn't work, but then I am new to both Unix and Korn shell hacking! Here is the problem: I want to interogate a file for a number and store that number in... (6 Replies)
Discussion started by: alarmcall
6 Replies

3. UNIX for Dummies Questions & Answers

Dumb question but its driving me nuts

I use a tcsh and I need to monitor a file that its constantly updating. In the past I remember using less -(an option) fileName. This option told less to keep listening to this file and output the any changes. What is this option??? I think I read the man page for less like 5 times and I... (3 Replies)
Discussion started by: jepombar
3 Replies

4. Shell Programming and Scripting

Pleas help..this is driving me crazy

Hi, I've created a script in csh that takes a file and checks it for mispelled words. Im almost done but I need to do two more things but I need help. First, when displaying an incorrect word to the user, I need to show the line of the input file that contains the word. Second,if the user... (0 Replies)
Discussion started by: hckygoli31
0 Replies

5. Shell Programming and Scripting

Short code driving me nuts.

Hello guys I am trying to learn perl and have a simple calculator I am trying to run but I get error runaway multi-line. Can someone point this rookie in the right direction. ### print 'Welcome to the Calculator'; print 'Would you like to enter the calculator? Please Type y or n'; $run =... (9 Replies)
Discussion started by: daddygrant
9 Replies

6. Shell Programming and Scripting

Escape Characters are driving me crazy!

Hi everyone, Is there anywhere I can find a complete table of all characters that must be escaped by the various UNIX shells and scripting languages? It seems every command/shell/scripting language has different rules about what characters must be escaped. I do a lot of searching and... (3 Replies)
Discussion started by: troym72
3 Replies

7. UNIX for Dummies Questions & Answers

Abnormal producer consumer problem driving me nuts

normally, i hate asking someone to do my homework for me but am getting desperate right now. i have a project about consumer producer problem. the deadline is tonight at 23:55. but i havent gotten it working yet. i just COULDNT get it to work right yet. the problem is as follows: the C - program... (0 Replies)
Discussion started by: alexantosh
0 Replies

8. Homework & Coursework Questions

Abnormal producer consumer problem driving me nuts

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: normally, i hate asking someone to do my homework for me but am getting desperate right now. i have a project... (1 Reply)
Discussion started by: alexantosh
1 Replies

9. Hardware

Name These Little Nuts for my Server Cabinet?

I bought a server cabinet recently and the person who sold it to me included some strange nuts. Can anyone tell me what they are called? I need to buy more. Below is the image of them. Thank you! http://s23.postimg.org/50fx2ge6j/image.jpg http://s23.postimg.org/o498isr0r/image.jpg ... (1 Reply)
Discussion started by: danijeljames
1 Replies
DWARF_GET_WEAKS(3)					   BSD Library Functions Manual 					DWARF_GET_WEAKS(3)

NAME
dwarf_get_weaks, dwarf_weak_cu_offset, dwarf_weak_die_offset, dwarf_weak_name_offsets, dwarf_weakname -- retrieve information about weak sym- bols LIBRARY
DWARF Access Library (libdwarf, -ldwarf) SYNOPSIS
#include <libdwarf.h> int dwarf_get_weaks(Dwarf_Debug dbg, Dwarf_Weak **weaks, Dwarf_Signed *nweaks, Dwarf_Error *err); int dwarf_weak_cu_offset(Dwarf_Weak weak, Dwarf_Off *cu_offset, Dwarf_Error *err); int dwarf_weak_die_offset(Dwarf_Weak weak, Dwarf_Off *die_offset, Dwarf_Error *err); int dwarf_weak_name_offsets(Dwarf_Weak weak, char **name, Dwarf_Off *die_offset, Dwarf_Off *cu_die_offset, Dwarf_Error *err); int dwarf_weakname(Dwarf_Weak weak, char **name, Dwarf_Error *err); DESCRIPTION
These functions retrieve information about weak symbols from the lookup tables in the (SGI-specific) ``.debug_weaknames'' section. Informa- tion about weak symbols is returned using opaque descriptors of type Dwarf_Weak. Applications need to use the functions described below to retrieve the name and offset information contained in these descriptors. Function dwarf_get_weaks() retrieves descriptors for all the weak symbols associated with the DWARF debug context specified by argument dbg. The argument weaks should point to a location that will be set to a pointer to an array of Dwarf_Weak descriptors. The argument nweaks should point to a location that will be set to the number of descriptors returned. Function dwarf_weak_cu_offset() returns the offset, relative to the ``.debug_info'' section, of the compilation unit that contains the debug- ging information entry associated with the argument weak. Argument cu_offset should point to a location that will hold the returned offset. Function dwarf_weak_die_offset() retrieves the offset, relative to the ``.debug_info'' section, of the debugging information entry associated with the argument weak, and stores it into the location pointed to by the argument die_offset. Function dwarf_weak_name_offsets() retrieves the name and offsets for the debugging information entry for argument weak. Argument name should point to a location which will be set to a pointer to a NUL-terminated string containing the name of the associated debugging informa- tion entry. Argument die_offset should point to a location which will be set to the offset, relative to the ``.debug_info'' section, of the associated debugging information entry. Argument cu_die_offset should point to a location which will be set to the offset, relative to the ``.debug_info'' section, of the first debugging information entry in the compilation unit associated with argument weak. Function dwarf_weakname() sets the location pointed to by argument name to a pointer to a NUL-terminated string holding the name of the debugging information entry associated with the argument weak. Memory Management The memory area used for the array of Dwarf_Weak descriptors returned in argument weaks by function dwarf_get_weaks() is owned by the DWARF Access Library (libdwarf, -ldwarf). Application code should not attempt to directly free this pointer. Portable code should instead use the function dwarf_weaks_dealloc(3) to indicate that the memory area may be freed. The memory area used for the string returned in the name argument to functions dwarf_weak_name_offsets() and dwarf_weakname() is owned by the DWARF Access Library (libdwarf, -ldwarf). Portable code should indicate that the memory area can be freed using the dwarf_dealloc(3) func- tion. Error Returns If argument err is not NULL, these functions will use it to store error information, in case of an error. RETURN VALUES
On success, these functions returns DW_DLV_OK. In case of an error, they return DW_DLV_ERROR and set the argument err. ERRORS
These functions may fail with the following errors: [DW_DLE_ARGUMENT] One of the arguments cu_die_offset, cu_offset, dbg, die_offset, weak, weaks, name, or nweaks was NULL. [DW_DLE_NO_ENTRY] The DWARF debugging context referenced by argument dbg did not contain information about weak symbols. SEE ALSO
dwarf(3), dwarf_get_cu_die_offset_given_cu_header_offset(3), dwarf_weaks_dealloc(3) BSD
April 10, 2011 BSD
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy