02-22-2013
Look at the 'strings' or 'cat -vt' output to see if you can pick them out using sed regex somewhat to the left of main or other subroutine names.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Unix/Darwin/MacOSX Terminal -- and I'm a newby.
I have a file called 'symfony' here:
/opt/sf/data/bin/symfony
If I go:
cd /opt/sf/data/bin
and then,
./symfony -V
It responds with the version number (like it should)
Great.
However, if I go to another directory: (1 Reply)
Discussion started by: pipp
1 Replies
2. UNIX for Dummies Questions & Answers
Hey guys. Hopefully this is an easy one but having reference similar problems on the web I still can't fix it.
I am doing a recursive find and replace from a script. Of course I could just run the damn thing from the command line but it's bugging me now and want to get it working.
grep -rl... (4 Replies)
Discussion started by: anthonyjstewart
4 Replies
3. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
4. Solaris
This was my intial setup of the partition table.
Part Tag Flag Cylinders Size Blocks
0 root wm 259 - 2666 4.70GB (2408/0/0) 9863168
1 swap wu 3 - 258 512.00MB (256/0/0) 1048576
2 backup wm 0 -... (8 Replies)
Discussion started by: chidori
8 Replies
5. Shell Programming and Scripting
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies
6. Shell Programming and Scripting
hi,
can any one explain the below command. run it and see and if you understand please tell me.
File=s1_abc.txt.xls.pdf
MOD_File=$(echo ${File%.*}_`date +%Y%m%d_%H%M%S%N`.${File##*.})
i asked somedays before and got the above code. i needed to add date time stamp just before the last... (2 Replies)
Discussion started by: Little
2 Replies
7. Shell Programming and Scripting
OSX 10.9
I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.
Running this command in Terminal yields great results; however when I put that line in a .sh script, I get the errors shown below. Am I doing something silly?
... (1 Reply)
Discussion started by: sudo
1 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
9. Shell Programming and Scripting
The below command moves all the .vcf files into the directory.
cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar
When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
Discussion started by: cmccabe
2 Replies
10. Shell Programming and Scripting
Oracle Linux 6.
Trying to set up a simple monitoring of memory usage. This command does exactly what I want at the command line:
echo $(date +%Y-%m-%d" "%H:%M:%S) $(grep PageTables /proc/meminfo) >> /home/oracle/meminfo.logBut when I put it in my crontab:
* * * * * echo $(date +%Y-%m-%d"... (2 Replies)
Discussion started by: edstevens
2 Replies
LEARN ABOUT NETBSD
gelf_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