Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: perl callable from bash?

by eye (Hermit)
on Apr 13, 2009 at 06:15 UTC ( #757160=note: print w/ replies, xml ) Need Help??


in reply to perl callable from bash?

Two points to be made here.

First, you rarely, if ever, want to set a script to have permissions (mode) 777. That give write access to your script to anyone with access to the machine. A mode of 755 should be sufficient to allow anyone to run the script. If it is just for you, you could use 700.

Second, I'm going to take a wild stab at your actual question and suggest that you:

  • change the script to include the absolute paths of the scripts (e.g., /home/hsmyers/bin/firstscript
  • enclose the name of your file in single quotes on the command line

Good luck!


Comment on Re: perl callable from bash?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2014-04-23 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls