LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 09:44 PM   #1
TKS
Member
 
Registered: Dec 2003
Location: NC, USA
Distribution: Slackware, VectorLinux, Smoothwall, and PCLinuxOS
Posts: 40

Rep: Reputation: 15
Question Output commands when programs run?


So I'm trying to create some crontabs and have been successfully doing so with Kcron. However, my crons aren't very elaborate. I've seen others use elaborate commands to start up a music player every morning at 8am etc. and I wondered how they got ahold of the command that opened up amarok with the proper volume and other settings that they needed.

I haven't seemed to run across any answer. The only thing I can think that someone might do to get ahold of these commands is to see the program executing via shell. Am I correct on this? If so, can I cat the output of a program execution to a file so that I can rip the command into a crontab? Help is appreciated....
 
Old 12-12-2005, 10:13 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
The best suggestion I can think of is to view the man pages for the program you're interested in learning about. You should be able to read about all the available options there.

Example:
Code:
man xmms
edit: One more thing. Not sure which desktop environment you're using, but in KDE it's pretty trivial to see the command that is being run when you click the icon. There are probably many ways to get to this, but the quickest for me is to right mouse click on it and click Edit Item.

Last edited by anomie; 12-12-2005 at 10:16 PM.
 
Old 12-12-2005, 11:07 PM   #3
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
for available options
the man page is usually the best choice

for programs such as amarok with no man...
<program> --help
or similar will also list the runtime options

for what you want to do, i believe you will
need to create a seperate config file and refer
to that config instead of your user's standard
config at runtime in your cron...
 
  


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
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
shortcuts to run commands/programs nexx_au Linux - General 3 12-21-2003 04:10 AM
Bash: How to concatenate the output of different commands? J_Szucs Programming 1 11-13-2003 07:43 AM
Using commands to output to files, how is this done? nro Linux - Newbie 3 11-11-2003 08:38 PM
how to read the output of df -k and about logical volumes commands jdara1 Linux - Software 3 05-23-2003 12:22 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
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