LinuxQuestions.org
Help answer threads with 0 replies.
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 10-23-2003, 07:49 AM   #1
lawrencegoodman
Member
 
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,
Lawrence
 
Old 10-23-2003, 08:31 AM   #2
slightcrazed
Member
 
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.

slight
 
Old 10-23-2003, 08:36 AM   #3
robartes
Member
 
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.

Code:
#!/bin/bash

/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.
 
  


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


All times are GMT -5. The time now is 09:49 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