If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:exe

From BoxMatrix
(Redirected from exe)


BoxMatrix >> System >> exe @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Devices Filesystems Partitions Sockets Netlink Pipes Interfaces Bridges Ports Events Sources Sinks AVMIPC Processes Watchdogs Memory Slab Vmalloc ProcFS SysFS Research

Procfs-Object

Goto:   Examples  -  Dependencies   -   Model-Matrix   -   Help Supportdata2   -   SMW-Browser

Details

exe is a symlink to the Shell-Command a process is currently running.

This is always a binary, even if it was started by a symlink. For all BusyBox-Commands this link will point to busybox.
To find out the real calling command inspecting the cmdline is required, see the Examples..

Excerpt from the proc(5) man page:

/proc/[pid]/exe

       Under Linux 2.2 and later, this file is a symbolic link
       containing the actual pathname of the executed command.
       This symbolic link can be dereferenced normally;
       attempting to open it will open the executable.  You can
       even type /proc/[pid]/exe to run another copy of the same
       executable that is being run by process [pid].  If the
       pathname has been unlinked, the symbolic link will contain
       the string '(deleted)' appended to the original pathname.
       In a multithreaded process, the contents of this symbolic
       link are not available if the main thread has already
       terminated (typically by calling pthread_exit(3)).

       Permission to dereference or read readlink(2)) this
       symbolic link is governed by a ptrace access mode
       PTRACE_MODE_READ_FSCREDS check; see ptrace(2).

       Under Linux 2.0 and earlier, /proc/[pid]/exe is a pointer
       to the binary which was executed, and appears as a
       symbolic link.  A readlink(2) call on this file under
       Linux 2.0 returns a string in the format:

           [device]:inode

       For example, [0301]:1502 would be inode 1502 on device
       major 03 (IDE, MFM, etc. drives) minor 01 (first partition
       on the first drive).

       find(1) with the -inum option can be used to locate the
       file.

Examples

init, cat and ls are symlinks to busybox. The exe just knows the binary, cmdline knows the symlink.

7530 fw 7.29 examples:

root@fritz1:/var/mod/root# cat /proc/1/cmdline | tr '\000' ' ' && echo
 
init 

root@fritz1:/var/mod/root# ls -l /proc/1/exe
   
lrwxrwxrwx    1 root     root             0 Nov 22 02:53 /proc/1/exe -> /bin/busybox
 
root@fritz1:/var/mod/root# cat /proc/self/cmdline | tr '\000' ' ' && echo

cat /proc/self/cmdline 

root@fritz1:/var/mod/root# ls -l /proc/self/exe

lrwxrwxrwx    1 root     root             0 Nov 23 17:43 /proc/self/exe -> /bin/busybox

3050 fw 4.07 examples:

# cat /proc/1/cmdline | tr '\000' ' ' && echo
 
init 

# ls -l /proc/1/exe
   
lrwxrwxrwx    1 root     root            0 Sep 11 08:57 /proc/1/exe -> /bin/busybox
 
# cat /proc/self/cmdline | tr '\000' ' ' && echo

cat /proc/self/cmdline 

# ls -l /proc/self/exe

lrwxrwxrwx    1 root     root            0 Sep 11 09:00 /proc/self/exe -> /bin/busybox

Dependencies

Daily updated index of all dependencies of this object. Last update: GMT.
A ** in the Mod column marks info from Supportdata2 probes, which will always stay incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the Object occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this object

Model-Matrix

Daily updated index of the presence, path and size of this object for each model. Last update: 2024-12-26 05:08 GMT.
Showing all models using this object. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list comes from Supportdata2 probes, which can have arbitrary settings and come from different firmware versions.
It doesn't say much if a model is not listed here. It may be a missing supportdata2 file or just a disabled feature.

Help Supportdata2

The data in this article is incomplete since it was manually collected using the Supportdata2 project.

Unlike the Supportdata-Probes which have been collected for years Supportdata2 is brand new and only has a few probes.
If you have access to a shell then please help to extend the Supportdata2 collection to improve this data.

It's easy and it's done in minutes. Please send created data as an Email attachment to the address listed here. Thanks!

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

e