LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   make a shortcut to a perl application with perameters? (https://www.linuxquestions.org/questions/linux-general-1/make-a-shortcut-to-a-perl-application-with-perameters-30608/)

ShawnD 09-17-2002 10:07 PM

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?

neo77777 09-17-2002 10:35 PM

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

ShawnD 09-18-2002 01:22 AM

nope that don't work either.

acid_kewpie 09-18-2002 03:15 AM

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

alias hs='whatever.pl config.blah'

sandy 09-19-2002 03:56 AM

did you ticked the option "run in terminal"

ShawnD 09-19-2002 08:28 AM

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


All times are GMT -5. The time now is 08:34 PM.