LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-17-2002, 10:07 PM   #1
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Rep: Reputation: 15
Unhappy make a shortcut to a perl application with perameters?


there is a program that i need to run located at /home/shawnd/halfstats/halfStats.pl and i have to run it with default.cfg after it.. so when i'm in the directory i run this:
./halfStats.pl default.cfg

i made a shortcut to run that looked like this:
/home/shawnd/halfstats/halfStats.pl default.cfg and that didn't work
perl /home/shawnd/halfstats/halfStats.pl default.cfg and that didn't work either.

any ideas?
 
Old 09-17-2002, 10:35 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
of course it won't work make it like this
/home/shawnd/halfstats/halfStats.pl /home/shawnd/halfstats/default.cfg
make sure the perl script has an executable bit set
chmod 755 /home/shawnd/halfstats/halfStats.pl
 
Old 09-18-2002, 01:22 AM   #3
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
nope that don't work either.
 
Old 09-18-2002, 03:15 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,395

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
create an alias instead of a shortcut (you mean as on a kde shortcut? ughh... anyway...

alias hs='whatever.pl config.blah'
 
Old 09-19-2002, 03:56 AM   #5
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
did you ticked the option "run in terminal"
 
Old 09-19-2002, 08:28 AM   #6
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
hmmmm no
thanks, i can't check right now (time) but if i don't post you can assume that it worked.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i create a keyboard shortcut for a certain application i want? kublador Linux - Newbie 4 04-05-2007 08:04 AM
command to create shortcut for an application in the start menu for linux neerajchaudhari Linux - Software 1 08-29-2005 03:11 AM
application shortcut trumpetdork Linux - Software 5 04-19-2005 05:58 PM
x server kill application keyboard shortcut/hotkey hypermegachi Linux - Newbie 2 07-25-2004 02:37 PM
How to make shortcut? Nicksan Linux - Software 2 06-20-2003 03:38 PM


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