Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: how to run this script (permissions)

by toolic (Bishop)
on Oct 05, 2012 at 17:25 UTC ( #997524=note: print w/ replies, xml ) Need Help??

in reply to Re^2: how to run this script
in thread how to run this script

when i do ./filename it gives error bash: ./ Permission denied
You probably need to give your file execute permissions, like:
chmod 777

Also, conventionally, the .pm file name suffix is reserved for Perl module files (see package). It is more common to use the .pl file extension for scripts.

Comment on Re^3: how to run this script (permissions)
Select or Download Code
Replies are listed 'Best First'.
Re^4: how to run this script (permissions)
by johngg (Abbot) on Oct 05, 2012 at 17:44 UTC
    chmod 777

    Far too permissive!

    That gives every man and his dog permission to run, modify or even delete the script, if they are able to browse to the directory containing it. Much safer would be

    chmod u+x

    We see, and have to try to fix, the chaos that ensues when someone does an ill-considered

    chmod -R 777 /some/path/with_lots_of/sub-directories

    and it is a practice strongly to be discouraged.



Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-11-27 13:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls