-
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

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99

Rare Vintage IBM 93ZZ PowerPC Server Board - MCM Ceramic CPU - 40N1844 - 1.1 lbs
$49.99

IBM System X3650 M3 Server Xeon E5620 2.4 GHz 16 GB Ram Raid M5015 No OS No HDD
$87.96