Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-23-2003, 08:49 AM   #1
Registered: Aug 2003
Posts: 47

Rep: Reputation: 15
Execute Command

I want to be able to customize my run commands, i.e. I want to be able to his ALT+F2, get the prompt screen and enter a phrase of my own choosing to run a certain program. I have researcher aliases and the ls command, but these don't seem to do it. Anyone know how I can do this?

Thanks as always,
Old 10-23-2003, 09:31 AM   #2
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
The keyboard shortcut is going to depend on what Window Manager you are using (WindowMaker/Fluxbox/GNOME/KDE/IceWM). Most of them do allow you to bind keys to a specific command. So I would start with reading the documentation for the window manager you are using. Bind keys should be right in there.

From there, just setup an alias for the program that you want to run.

Old 10-23-2003, 09:36 AM   #3
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Just put a script somewhere in your $PATH, that launches whatever you want to launch. E.g.


/usr/local/xmms/bin/xmms -option -another_option -play_myfiles
Then name that script xmms_launch and put it in a directory that is somewhere in your $PATH. Adjust to taste for various other programs.


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
execute system command from c alaios Programming 2 07-19-2005 08:45 AM
execute system command in c alaios Programming 3 07-13-2005 06:26 AM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM
execute command from c code alaios Programming 3 06-06-2005 06:26 AM
command execute without ./ kaon Slackware 11 09-15-2004 06:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:14 AM.

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