Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-29-2003, 12:08 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2003
Posts: 8
Rep:
|
view KDE calls
Hi all,
I'm a pretty new at Linux, but I got myself a book and have figured out quite a bit. I am getting fairly comfortable at the command line.
Which brings me to my question: Is it possible to see commands that a UI (KDE is what I'm using) makes to the underlying OS? Or am I completely off base with this question?
For example, if I launch an app (say, Mozilla) by clicking an icon, can I see the call to execute that program somewhere? If I delete a directory in Nautilus, can I see the "rm my_directory" call?
Can you compile "logs" of all commands that have been issued?
Thanks,
Matt
|
|
|
|
01-29-2003, 12:35 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
If I understand what you're asking, you can open a terminal (konsole, if you like kde) then start the app from there. So type 'kate' or 'konqueror' and it will print all sorts of messages to the console. I don't know if they are what you're looking for but have a look...
|
|
|
|
01-29-2003, 05:10 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2003
Distribution: OpenLinux 2.3
Posts: 6
Rep:
|
matthew. I am also new to linux and would like exactally the same thing, if you have found this type of logging would you let me know.
|
|
|
|
01-29-2003, 06:27 PM
|
#4
|
|
LQ Newbie
Registered: Jan 2003
Posts: 8
Original Poster
Rep:
|
More help needed...
While I am in KDE, I open up Konsole and then open up Konqueror by typing the app name. I get the Konquerer app up in its own window. However in the Konsole, I have a message:
KDirWatch: /etc/securtiy/fileshare.conf is a file. Use addFile!
and then I don't see any commands reflected in Konsole as I use Konquerer.
Any suggestions?
Thanks,
Matthew.
|
|
|
|
01-29-2003, 06:42 PM
|
#5
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
It works for me. I just tried it and I got:
Code:
kio (KTrader): KServiceTypeProfile::offers( Browser/View, )
kio (KTrader): Returning 24 offers
libkonq: ## loaded: 500 entries.
konqueror: KonqMainWindow::enableAllActions false
kparts: MainWindow::createGUI, part=(nil)
konqueror: KonqMainWindow::openURL : url = 'file:/home/bulliver' serviceType='' view=(nil)
konqueror: KonqMainWindow::setLocationBarURL: url = file:/home/bulliver
konqueror: trying openView for file:/home/bulliver (servicetype inode/directory)
konqueror: serviceName=konq_detailedlistview m_sViewModeForDirectory=konq_detailedlistview
konqueror: KonqViewManager::createView
konqueror: Trying to create view for "inode/directory"
kio (KTrader): KServiceTypeProfile::offers( inode/directory,Application )
kio (KTrader): Returning 2 offers
kio (KTrader): KServiceTypeProfile::offers( inode/directory,KParts/ReadOnlyPart )
kio (KTrader): Returning 9 offers
konqueror: Found requested service konq_detailedlistview
konqueror: Trying to open lib for requested service konq_detailedlistview
konqueror: KonqView::switchView
etc..etc..and it prints more when I use any buttons in konq....
This is what you're looking for right?
Try again I guess
|
|
|
|
01-30-2003, 12:00 PM
|
#6
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
man strace - beware, strace will produce a LARGE log file. it doesn't just log kde calls, it logs all calls.
|
|
|
|
01-31-2003, 12:39 PM
|
#7
|
|
LQ Newbie
Registered: Jan 2003
Distribution: OpenLinux 2.3
Posts: 6
Rep:
|
This still looks like greek to me. What I am looking for is more of a Echo window this will show me what was typed on to the command line to execute the command. I am real new and still trying to figure out the difference between what is a directory, file, executable file, program and everything else Konqueror looks to me to be more of a log file.
. 
|
|
|
|
01-31-2003, 12:52 PM
|
#8
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
try:
ps aux
that'll show what command lines were used to launch each process
|
|
|
|
02-03-2003, 09:56 AM
|
#9
|
|
LQ Newbie
Registered: Jan 2003
Distribution: OpenLinux 2.3
Posts: 6
Rep:
|
Thanx alot, this was just what I was looking for.
|
|
|
|
02-03-2003, 12:07 PM
|
#10
|
|
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261
Rep:
|
As for an echo type command look into tail. man tail
common syntax: tail -f /var/log/firewall.log (hypothetical file)
You will then have a window/console open that is printing all info that is being sent to that file by the program... It can be used for many things, try er out.
|
|
|
|
04-08-2003, 04:48 AM
|
#11
|
|
Member
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475
Rep:
|
so what do you do with "Use addFile?"
it looks like no human on this earth want to share THIS secret. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|