in reply to call perl script from another

To execute a file, you need...wait for it...execute privileges. :)

r: read w: write x: execute

If you are in the directory perl_script, you can add privileges like this:

$ chmod a+x rebolette.pl

That adds 'x' privileges for 'all' accounts: user, group, others.

Replies are listed 'Best First'.
Re^2: call perl script from another
by Anonymous Monk on Feb 03, 2010 at 12:45 UTC
    thank's 7stud, but it doesn't work

      What error are you getting? What are the file permissions now (give "ls -l" and "stat" output).

      You've mentioned two completely different errors so far:

      • "permission denied" (which I think you got because the file did not have the execute bit set; the permissions were probably 644 (-rw-r--r--).
      • "no such file or directory" (which sounds like you removed or renamed the file).

      You could also use diagnostics which will give a more verbose error message.

      nm -- already solved