07-22-2012
Quote:
Originally Posted by
alister
You won't find that in the magic file. Once file determines that it is dealing with an elf executable, it examines various sections of the elf binary for information left behind by the toolchain that built the binary.
For example, the vendor information is in a PT_NOTES section, PT_INTERP/PT_DYNAMIC can be used to determine if the binary is statically or dynamically linked, etc. You can't use grep on the binary because a lot of this information is in a binary format (for example, the vendor name and ABI version numbers).
What are you trying to accomplish?
Regards,
Alister
I want to know how "x86-64" is got and how is "GNU/Linux 2.6.16" got,
the info is determined by gcc or glibc, where can I find the source code to dertermine its"x86-84" but not i386, where can I find the source code it's "2.6.16" but not "2.6.36"
Thanks for the help
Lei
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how do I feed output of "wc" to a shell script variable "countBcp"? (2 Replies)
Discussion started by: devy
2 Replies
2. Shell Programming and Scripting
in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory.
How to do this..??
Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</');
i want to copy o/p of the command "allip:acl=a1;" in a log file in a particular directory.
Plz suggest.. (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
3. Shell Programming and Scripting
Hello,
I need help with the eval command.
I have been building a lengthy cmd using eval, and I need to create $var from the output of the cmd. Here is what I have.
Out=/dfezz1/output.txt
Node="'LPAR Info:'"
Gr3p0=" |grep"
Printc=" prtconf"
Output1=" 1>>$Out 0>&1"
Cat1="cat... (8 Replies)
Discussion started by: dfezz1
8 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
Hi everybody;
I try to code a script perl to list all services that are active "ON" with a chkconfig -- list
the problem is that code list all services which are active or not.
#!/usr/bin/perl
use strict;
use warnings;
open(FILE,"-|") || exec "chkconfig --list |grep ON";... (2 Replies)
Discussion started by: bassma
2 Replies
6. Shell Programming and Scripting
Hi guys,
I have a shell script where I have the following:
for i in ad0 ad1
do
gpart create -s gpt $i || echo "Cannot create GPT partition on "$i". Exiting ..."
gpart add -s 128 -t freebsd-boot $i || echo "Cannot add freebsd-boot partition on "$i". Exiting ..."
gpart add -s 4G -t... (2 Replies)
Discussion started by: da1
2 Replies
7. Shell Programming and Scripting
Hello,
There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it?
open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies
8. Shell Programming and Scripting
Hi All,
I am new here but I have a scripting question that I can't seem to figure out with the "find" cmd.
What I am trying to do is to only have to run a single find cmd parsing the directories and output the different file types to induvidual files and I have been running into problems.... (3 Replies)
Discussion started by: swaters
3 Replies
9. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
teeworlds
Teeworlds(6) Teeworlds(6)
NAME
teeworlds - Teeworlds Client
SYNOPSIS
teeworlds ["option value"]...
DESCRIPTION
This manual page documents briefly the teeworlds command.
teeworlds is the Teeworlds client. It is an online multi-player platform 2D shooter.
OPTIONS
(Note that this is not a full list!)
bind key command [value]
exec configfile
connect server:port
player_name <string>
password <string>
logfile <string>
cl_cpu_throttle <binary>
cl_editor <binary>
b_filter_string <string>
b_filter_full <binary>
b_filter_empty <binary>
b_filter_pw <binary>
b_filter_ping <binary>
b_filter_gametype <integer>
b_filter_compatversion <binary>
b_sort <integer>
b_sort_order <binary>
b_max_requests <integer>
snd_rate <integer>
snd_enable <binary>
snd_volume <integer>
snd_noactive_mute <binary>
gfx_screen_width <integer>
gfx_screen_height <integer>
gfx_fullscreen <binary>
gfx_color_depth <integer>
gfx_clear <binary>
gfx_vsync <binary>
gfx_display_all_modes <binary>
gfx_texture_compression <binary>
gfx_high_detail <binary>
gfx_texture_quality <binary>
gfx_fsaa_samples <integer>
gfx_refresh_rate <integer>
gfx_debug_resizable <binary>
inp_mousesens <integer>
debug <binary>
cl_predict <binary>
cl_nameplates <binary>
cl_nameplates_always <binary>
cl_autoswitch_weapons <binary>
cl_showfps <binary>
cl_airjumpindicator <binary>
cl_threadsoundloading <binary>
cl_warning_tuning <binary>
cl_mouse_deadzone <integer>
cl_mouse_followfactor <integer>
cl_mouse_max_distance <integer>
cl_motd_time <integer>
ed_showkeys <binary>
cl_flow <binary>
cl_show_welcome <binary>
player_user_custom_color <binary>
player_color_body <integer>
player_color_feet <integer>
player_skin <integer>
dbg_tuning <binary>
ui_page <integer>
ui_server_addess <string>
ui_scale <integer>
ui_color_hue <integer>
ui_color_sat <integer>
ui_color_lht <integer>
ui_color_alpha <integer>
SEE ALSO
teeworlds-server(6)
AUTHOR
Teeworlds was written by Magnus Auvinen.
This manual page was written by Jack "jscinoz" Coulter <jscinoz@gmail.com> for the Debian project (but may be used by others). Permission
is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
April 14 , 2008 Teeworlds(6)