Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how do you install a perl app::someapp module in bash

by nagalenoj (Friar)
on Feb 07, 2013 at 07:51 UTC ( #1017581=note: print w/ replies, xml ) Need Help??


in reply to how do you install a perl app::someapp module in bash

Hi,

I hope your first question is about installing your script in linux machine, so you could launch the script from any directory. For this, either you can change the $PATH bash variable in ~/.bashrc file, append it with the directory which your script exists or create a link to your script under any directory which already exists in $PATH.

export PATH="$PATH:/home/YOU/YOUR_DIRECTORY";

For your second question to make the script executable, yes, you have to give it executable permission and don't forget to add the shabang inside the script.


Comment on Re: how do you install a perl app::someapp module in bash
Download Code
Re^2: how do you install a perl app::someapp module in bash
by vinoth.ree (Parson) on Feb 07, 2013 at 08:02 UTC

    Yes you need to make your perl script executable, or you need to specify the perl interpreter path manually like, #/usr/bin/perl perlprogram.pl

Re^2: how do you install a perl app::someapp module in bash
by gideondsouza (Pilgrim) on Feb 07, 2013 at 08:04 UTC

    Ah Thanks, this is what I was looking for. But what event (or WHEN?) do I do this? Is there an install event that will give me a handle to when a module is installing.

    So any ideas about windows? I'm guessing I have to change the PATH variable and there is probably a perl module for it :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-09-17 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (61 votes), past polls