in reply to Re: call perl script from another
in thread call perl script from another

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.

Replies are listed 'Best First'.
Re^3: call perl script from another
by cdarke (Prior) on Feb 03, 2010 at 13:27 UTC
    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
Re^3: call perl script from another
by Ratazong (Monsignor) on Feb 03, 2010 at 12:08 UTC
    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