1832686 Members
2792 Online
110043 Solutions
New Discussion

Perl script not run

 
Francesco_13
Regular Advisor

Perl script not run

Hi,
i do it to run the Oracle script (for Ias 10g backup mutilities) . But when i try to execute
a path error por perl return:

./bkp_restore.pl
interpreter "/usr/bin/perl" not found
ksh: ./bkp_restore.pl: not found

I have a perl in other path. I do it to change a script?

Best regards.
Francesco

#!/usr/bin/perl -w

# Copyright © 2003, Oracle. All rights reserved.
# Last Revised: 03/10/28
# Version: 9.0.4.0.0

# Include Libraries
use Getopt::Std;
use File::Basename;
use File::Copy;
use File::Path;

use strict;...... and more
2 REPLIES 2
Peter Godron
Honored Contributor

Re: Perl script not run

Francesco,
what does:
which perl
return?

Change the first line of your perl script to
#!

Or alternatively create a link from your perl installation to /usr/bin/perl.
Regards
Francesco_13
Regular Advisor

Re: Perl script not run

Hi,
/usr/contrib/bin/perl is the result of which perl.

I will change my script.

Thanks.
Regards.
Francesco