LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 12-05-2008, 09:27 AM   #1
pslacerda
Member
 
Registered: Nov 2008
Posts: 42

Rep: Reputation: 17
Question discovering commands from applications without documentation


Hi,

Here has two users, an laywoman and I (half-layman rs). After she use the computer (when i'm sleeping), she don't like switch her user and open my applications, so i lose a lot of downloading time.

I need discover the built-in firefox commands, my download manager. So create an script to open only the download window, from my user. Unfortunately I can't find the command

I listened had a file that shows all operation that occurs on application. Like /proc/pid/something, I don't know if its true.

So my linux-questions are:
  • How discover commands from applications?
  • Is real the suposed file? How interpret it?
  • If all said is bad, how it do?

sorry by my brazillian english, rsrsrs

thanks
 
Old 12-05-2008, 09:59 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
If it were me I would use screen and wget that's more what those tools where designed for.

screen -S downloadsession - Create screen and name it downloadsession, then enter the seession

screen -ls - view running screen sessions, you can have multiple screen sessions running and switch between them

wget http://us.download.nvidia.com/XFree8...77.82-pkg1.run - Download a file from the web using wget

Use Ctrl Key operations to leave process running on screen and exit back to terminal

C-a C-d
= Ctrl + a then CTRL + d - Detach from the current screen session but leave it running

screen -r downloadsession - Re-attach to the Screen session named downloadsession

C-a k = CTRL + a then k - Exit current screen session and terminate it

for more information

man screen
man wget


If I misunderstood what you were looking to do Sorry. I tried to guess your actual goal by the questions you were asking

Last edited by farslayer; 12-05-2008 at 10:01 AM.
 
Old 12-05-2008, 10:31 AM   #3
pslacerda
Member
 
Registered: Nov 2008
Posts: 42

Original Poster
Rep: Reputation: 17
It was I looking for. Thanks a lot

However, I want to know how discover the commands that are being passed to program under interface. Eg. what internal command/argument that are passed to thunar open the file properties, when I just click? Or open the preference panel of OpenOffice? Is all processed internally, on a carapace, or had some "shell"?

I'm only a newbie boy wanting to learn.

Last edited by pslacerda; 12-05-2008 at 12:04 PM. Reason: syntax error
 
Old 12-05-2008, 10:15 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
If you want to know what is going on underneath you could always view the program source code.. That is one thing about Open Source software, it's all there for you to review and look at. As for me I'm not a programmer so all that code looks like something from "The Matrix" to me
 
Old 12-06-2008, 03:46 PM   #5
pslacerda
Member
 
Registered: Nov 2008
Posts: 42

Original Poster
Rep: Reputation: 17
Thanks farslayer. Wget, was my choice.

Ow, codes looks like chinese to me, too.

I'm not get used to the screen yet

But was solved. Assume myownuser as my own user, . I created an "download-user" user with home path at /home/myownuser/downloads. Inserted myownuser and download-user on download-group. Corrected permissions, all files created/downloaded on download directory will be owned by all download-group.

Now mom only needs ctrl+alt+F1 to change to terminal, and type "start" or ctrl+c for start and stop my downloads.

I had a question related with this post, but for another thread.

EDIT: If someone know anything about my previous post, teach, please

EDIT: Finally I understood screen, I can close the terminal (!). Screen is the solution! Using it instead of the trash above.

Last edited by pslacerda; 12-06-2008 at 04:16 PM.
 
Old 12-06-2008, 06:40 PM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Glad that solution was able to handle your requirements.

Enjoy !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Discovering IP address XavierOnassis Linux - General 8 02-14-2008 04:24 PM
Writing documentation for kde applications Michael_aust Linux - Newbie 1 06-21-2006 04:16 PM
Common Linux Commands/Applications in Suse 9.2 jedcred Linux - Newbie 1 03-12-2005 07:56 PM
discovering hosts splat Linux - Networking 1 09-24-2003 09:58 AM
Discovering your version... Stephanie Linux - General 4 01-09-2002 09:21 PM


All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration