in reply to call perl script from another

To execute a script, the permission "rw" is not sufficient - you need also to set the permission to "x".
HTH, Rata

Replies are listed 'Best First'.
Re^2: call perl script from another
by Anonymous Monk on Feb 03, 2010 at 12:00 UTC
    when i set the permission to"x" it gives another err:

    can't exec "/home/my_folder/perl_script/rebelotte.pl": No such file or directory at myscript.pl line 153,<STDIN> line 2.

      Assuming you had tested the obvious and the script pathname is correct, then check the #! line in the script you are calling. Some shells can report that error message if they cannot find the program in the line. A common error is to miss out the leading /, as in:
      #! usr/bin/perl ## << wrong!

        the problem was the #!line in the script i'm calling

        #!/user/bin/perl instead of #!/usr/bin/perl.

        thank you for all your help
      Have you doublechecked that /home/my_folder/perl_script/rebelotte.pl is existing? And that there is no typo in the path?
      Have you tried to execute it (with the full path!) from your unix-shell?
        i've checked all ,everything is good and i can execute the "/home/my_folder/perl_script/rebelotte.pl" from my unix-shell. i've also tried
        if($tab[-1] != $tab[-2]) { my $adr="/home/my_folder/perl_script/rebelotte.pl"; system($adr); exit; }
        same error