rogerioprof
(usa Slackware)
Enviado em 12/09/2011 - 09:50h
Bom dia Renato!!!
Exelente dica meu camarada.
Segue os resultados:
:~$ which pig
/usr/games/pig
-----------------------------------------------------------
:~$ file /usr/games/pig
/usr/games/pig: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped
-----------------------------------------------------------
e finalmente o:
:~$ strace /usr/games/pig
execve("/usr/games/pig", ["/usr/games/pig"], [/* 35 vars */]) = 0
brk(0) = 0x602000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdcebeba000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=158833, ...}) = 0
mmap(NULL, 158833, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdcebe93000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}\3{TTEXTO}>{TTEXTO}\1{TTEXTO}{TTEXTO}{TTEXTO}\200\354\1{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}{TTEXTO}@"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1751431, ...}) = 0
mmap(NULL, 3622920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fdceb927000
mprotect(0x7fdceba92000, 2097152, PROT_NONE) = 0
mmap(0x7fdcebc92000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16b000) = 0x7fdcebc92000
mmap(0x7fdcebc97000, 18440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fdcebc97000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdcebe92000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdcebe91000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdcebe90000
arch_prctl(ARCH_SET_FS, 0x7fdcebe91700) = 0
mprotect(0x7fdcebc92000, 16384, PROT_READ) = 0
mprotect(0x7fdcebebb000, 4096, PROT_READ) = 0
munmap(0x7fdcebe93000, 158833) = 0
getgid() = 100
getgid() = 100
setregid(100, 100) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdcebeb9000
read(0,
------------------------------------------------------------------------------------------
Depois deste comando o terminal fica "parado" como se estivesse aguardando mais algo.
Quando eu executo o "strace" no comando /bin/ls (por exemplo) o comando completa e libera o terminal.
Mesmo assim , muito obrigado pelas dicas!!!