Results 1 to 2 of 2

Thread: See what files an app tries to open (and where)

  1. #1
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    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
    Code:
     which nameoftheapp
    probono

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    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

  1. open rar files in Linux
    By jrev in forum General Support
    Replies: 16
    Last Post: 10-13-2005, 04:08 PM
  2. locked files/ can you force them open? how?
    By finder in forum The Lounge
    Replies: 1
    Last Post: 11-17-2004, 08:41 PM
  3. What open files like hda1, hda3 and hda5 by default?
    By rrfish72 in forum General Support
    Replies: 2
    Last Post: 08-10-2004, 04:36 AM
  4. Can't open .bin files!
    By Wrincle in forum General Support
    Replies: 1
    Last Post: 05-28-2004, 02:23 AM
  5. Can't open .exe files
    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
  •  


Cisco Systems NCS2K-20-SMRFS-L optical multiplexor CISCO EXCESS picture

Cisco Systems NCS2K-20-SMRFS-L optical multiplexor CISCO EXCESS

$3599.00



Cisco GLC-GE-100FX 100BASE-FX SGMII SFP, 1310nm, 2km, LC, MMF picture

Cisco GLC-GE-100FX 100BASE-FX SGMII SFP, 1310nm, 2km, LC, MMF

$83.99



Cisco w/ Green Hologram DS-SFP-FC32G-SW FC 32G FC SFP+ Transceiver Module picture

Cisco w/ Green Hologram DS-SFP-FC32G-SW FC 32G FC SFP+ Transceiver Module

$85.00



Cisco Systems Nexus 7700 10 Slot Chassis Fab 3 Mod | N77-C7710-FAB-3 picture

Cisco Systems Nexus 7700 10 Slot Chassis Fab 3 Mod | N77-C7710-FAB-3

$4999.99



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod

$83.00



Cisco Nexus N9K-C93180YC-EX 48-Port 1/10/25G SFP + 6 40G/100G QSFP28 Switch picture

Cisco Nexus N9K-C93180YC-EX 48-Port 1/10/25G SFP + 6 40G/100G QSFP28 Switch

$789.00



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$38.99



Cisco Catalyst 3850 WS-C3850-48U-S 48-Port UPOE Gb Switch w/ NM-2-10G (BH) picture

Cisco Catalyst 3850 WS-C3850-48U-S 48-Port UPOE Gb Switch w/ NM-2-10G (BH)

$134.96



Cisco N5K-C5010P-BF 20-Port Nexus 5010 Series 10GbE Gigabit Ethernet Switch picture

Cisco N5K-C5010P-BF 20-Port Nexus 5010 Series 10GbE Gigabit Ethernet Switch

$119.99