-
Senior Member
registered user
See what files an app tries to open (and where)
Hi all,
do you want to see what files an app tries to open? E. g. you want to know where it looks for libraries and configuration files? Then call the app from a konsole with
Code:
strace -f -e open /path/and/name/of/the/app.sh
Konsole then shows all files as they are tried to open. So you can easily see what actually gets accessed when.
Btw, you can get the path of the app with probono
-
Senior Member
registered user
Here is a little KDE frontend that shows you which files a process tries to access. You can start any application, then this frontend, and it will tell you which files the application tries to open.
This is useful for debugging, and in order to know what's "going on"! I am using it when debugging klik.
Code:
#
# KDE frontend to see what files a process tries to open
#
PROCESSES=$(ps -e | gawk -F " " '{ print $1 " " $4}')
echo $PROCESSES
PID=$(kdialog --menu "Select a process to watch" $PROCESSES)
konsole --noclose --nomenubar --notabbar -e strace -e open -f -p $PID
Greetings,
probono
Similar Threads
-
By jrev in forum General Support
Replies: 16
Last Post: 10-13-2005, 04:08 PM
-
By finder in forum The Lounge
Replies: 1
Last Post: 11-17-2004, 08:41 PM
-
By rrfish72 in forum General Support
Replies: 2
Last Post: 08-10-2004, 04:36 AM
-
By Wrincle in forum General Support
Replies: 1
Last Post: 05-28-2004, 02:23 AM
-
By satyr409 in forum General Support
Replies: 1
Last Post: 01-02-2004, 09:52 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter
$27.50

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

Lenovo 00YK615 Intel X710-DA2 10GbE 2-port SFP+ PCI-E FC Network Adapter NIC
$27.99

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED
$24.99

Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver
$30.00