01-20-2011
I noticed PWD was an elf executable in this instance on my machine, but I am sure you are right that some of them are just scripts.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies
3. Shell Programming and Scripting
Hi
Is there a way to get the program/script name or function name usng built ins.
Like in many languages arg holds the program name
regards (2 Replies)
Discussion started by: xiamin
2 Replies
4. Programming
I have a program which has 7-8 threads, and lots of shared variables; these variables (and also they may not the primitive type, they may be enum or struct ), then they may read/write by different threads at the same time.
Now, my design is like this,
typedef unsigned short int UINT16;... (14 Replies)
Discussion started by: sehang
14 Replies
5. UNIX for Advanced & Expert Users
I am looking to create some ksh93 extensions using the custom builtin feature.
I can successfully create a builtin function, load it using the builtin -f command and get an output. However, I want to get/set values of KSH variables from within my built-in.
For example, lets say I am creating... (2 Replies)
Discussion started by: a_programmer
2 Replies
6. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
7. Solaris
Hi Experts,
I found that the same commands(sort, du, df, find, grep etc.) exists in both dir.
What is the difference to use them?
i.e: to use xpg4/bin/grep and usr/bin/grep
My OS version is SunOS 5.10
Regards,
Saps (7 Replies)
Discussion started by: saps19
7 Replies
8. UNIX for Dummies Questions & Answers
Not sure if this is the right forum but I have collated a listing of shell and bash builtins.
Builtins is a loose word and may include the '/bin' drawer/folder/directory but NOT any
others in the path list.
In the case of my Macbook Pro, OSX 10.7.5 the enabled internals is also listed...
... (1 Reply)
Discussion started by: wisecracker
1 Replies
9. AIX
Hi,
I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2).
The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin.
Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies
10. Shell Programming and Scripting
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
LEARN ABOUT FREEBSD
elf32_getphdr
GELF_GETPHDR(3) BSD Library Functions Manual GELF_GETPHDR(3)
NAME
elf32_getphdr, elf64_getphdr, gelf_getphdr -- retrieve an ELF program header table
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
Elf32_Phdr *
elf32_getphdr(Elf *elf);
Elf64_Phdr *
elf64_getphdr(Elf *elf);
#include <gelf.h>
GElf_Phdr *
gelf_getphdr(Elf *elf, int index, GElf_Phdr *dst);
DESCRIPTION
These functions retrieve and translate ELF program header information from an ELF descriptor, if this information exists.
Functions elf32_getphdr() and elf64_getphdr() return a pointer to an array of translated Elf32_Phdr and Elf64_Phdr descriptors respectively.
These descriptors are described in elf(5). The number of entries in this array may be determined using the elf_getphnum(3) function.
Function gelf_getphdr() will retrieve the program header table entry at index index from ELF descriptor elf. The translated program header
table entry will be written to the address pointed to be argument dst.
Applications may inform the library of modifications to a program header table entry by using the elf_flagphdr(3) API. Applications using
the gelf(3) interface need to use the gelf_update_phdr(3) API to copy modifications to a program header entry back to the underlying ELF
descriptor.
RETURN VALUES
The functions a valid pointer if successful, or NULL in case an error was encountered.
ERRORS
These functions may fail with the following errors:
[ELF_E_ARGUMENT] Argument elf was NULL.
[ELF_E_ARGUMENT] Argument elf was not a descriptor for an ELF object.
[ELF_E_ARGUMENT] Argument dst was NULL.
[ELF_E_ARGUMENT] Index index was out of range.
[ELF_E_CLASS] The class of ELF descriptor elf did not match the expected class of the function being called.
[ELF_E_HEADER] ELF descriptor elf did not possess an executable header.
[ELF_E_HEADER] ELF descriptor elf had a corrupt executable header.
[ELF_E_RESOURCE] An out of memory condition was detected.
[ELF_E_SECTION] The ELF descriptor in argument elf did not adhere to the conventions used for extended numbering.
[ELF_VERSION] ELF descriptor elf was of an unsupported version.
SEE ALSO
elf(3), elf32_getehdr(3), elf32_newphdr(3), elf64_getehdr(3), elf64_newphdr(3), elf_flagphdr(3), elf_getphnum(3), gelf(3), gelf_getehdr(3),
gelf_newphdr(3), gelf_update_phdr(3), elf(5)
BSD
October 21, 2007 BSD