[This e-mail is confidential and may also be privileged. If you are not the
intended recipient, please delete it and notify us immediately; you should
not copy or use it for any purpose, nor disclose its contents to any other
person. Thank you.]
John,
I believed compile/install the perl for that particular OS should solve the
problem.
And may I know the steps to compile the perl?
By the way, below is the scripts I used to add in missing info.
and the commands is : addlotnums.pl <missing info>
*****************************
#!/home/practice/perl
#Reads all abist_repair files without lot number "_L." and renames them
with user specified lot number.
$lotnum = $ARGV[0];
die "Wrong usage, please use addlotnums.pl lotnumber\n" unless $lotnum !=
0;
@nolotnum = split(/[,\r\s ]+/, `ls -m *_L.abist_repair`);
print "\n";
foreach $file (@nolotnum){
$orig = $file;
$file =~ s/_L.abist_repair//;
$file1 = "$file"."_L"."$lotnum".".abist_repair";
`mv "$orig" "$file1"`;
print "$orig changed to $file1\n";
}
*******************************
regards
Neon
John Pataki <[EMAIL PROTECTED]> on 29-08-2001 11:51:34 AM
To: NEO Chye Chu/Assoc Engr/STATS/ST Group@ST Domain
cc: "$Bill Luebkert" <[EMAIL PROTECTED]>, Perl
<[EMAIL PROTECTED]>
Subject: Re: unable to run on anither platform
Neon,
Ok, So both are UNIX platforms.
Do not upload anything binary using the ASCII toggle.
You will munch it all up and be left with a soup sandwhich.
Bill was only referring to your scripts.
You have mentioned uploading the perl interpreter.
This cannot simply be uploaded and copied in place on a different OS.
You must compile/install perl for that particular OS.
May this be the problem?
Can you send the exact commands you are typing and messages you are
receiving
in the shell?
Maybe an example script you are trying to run would help also.
John
[EMAIL PROTECTED] wrote:
> [This e-mail is confidential and may also be privileged. If you are not
the
> intended recipient, please delete it and notify us immediately; you
should
> not copy or use it for any purpose, nor disclose its contents to any
other
> person. Thank you.]
> Hi,
>
> John,
> FYI, platform A is using SunOS 4.1.3 U1
> and platform B is Solaris 2.6.
> As for the first line the program look like,
> it is pointing to the perl interpreter
> #!/home/practice/perl for both platform.
>
> Bill,
> I don't really understand by your statement:
> "Make sure you are uploading in ASCII (to remove the \r's from your
script)
> when uploading to UNIX/Linux. Or try adding -- to the end of the shebang
> line just in case:
>
> #!/usr/bin/perl -- "
> are you saying I should upload the files (perl interpreter + scripts) all
> in ASCII??
> and changes the first line of the program as follow;
> #!/home/practice/perl --
>
> regards
> Neon
>
> John Pataki <[EMAIL PROTECTED]> on 29-08-2001 10:38:31 AM
>
> To: NEO Chye Chu/Assoc Engr/STATS/ST Group@ST Domain
> cc: Perl <[EMAIL PROTECTED]>
> Subject: Re: unable to run on anither platform
>
> Neon ( i love it ),
>
> what are platforms a and b?
> what does the first line of your program look like?
> it should be pointing to the perl interpreter
>
> Example:
> if platform a is windows and perl is installed in C:\perl
> then the first line of your program must look like
> #!c:/perl/bin/perl.exe
>
> and platform b is a unix incarnation and perl is installed in
/usr/bin/perl
>
> then the first line of your program must look like
> #!/usr/bin/perl
>
> make sense?
>
> John
>
> [EMAIL PROTECTED] wrote:
> [This e-mail is confidential and may also be privileged. If you are
> not the
> intended recipient, please delete it and notify us immediately; you
> should
> not copy or use it for any purpose, nor disclose its contents to any
> other
> person. Thank you.]
> Hi,
> I came across the problem when I copy the perl file from platform B
to
>
> platform A.
> I used the same old perl files and scripts files created on platform
> B.
> Copy everything to A and path them the same way as in B.
> Whenever I run the scripts files it prompt me "Command not found".
> Appreciate if you guys can enlighten and how to go about rectifying
> the
> problem.
> Thanks
> Neon
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl