OpenSolaris Vs. Solari8

Can someome give a help for OpenSolari X86 compared with Solaris?
I met a problem for some Shell can be running on Solaris 8 but give me some error when it is running on OpenSolaris X86....
I suspect that is the ENV set or something configuration error on my OpenSolaris system(used SunVirtualBox)

I try me best to describe the phenomena clearly as below:

For Solari 8 system: spac
there is a huge file splited and i have a shell for combine the files together. on the Spac system, the shell can be running normal.

For OpenSolaris X86. the same combine shell can not be working properly.

Can some met this kind of Error...give a hand....:frowning:

.. maybe someone will help you if you actually post the "shell" ( I take it you meant script) you are using, how you are using it, and how it fails. All you posted is "I can do something in Sol8 but can't do it in OpenSolaris".

no output, how to give a helping hand??

So,,,,boss...sorry for that.... Can u help me analyse this SHELL, and give me some advice.
THis shell can be executed on Sol8 platform....but when i try to run in OpenSolari....the promopt information is" ./complete.sh[349]: Basic_message[222]::cannot open.....

The error is telling you what's making the SCRIPT fail;

./complete.sh[349]: Basic_message[222]::cannot open.....

On line 349 of the script, Basic_message is being called, and complete.sh can't execute it.

I don't know what Basic_message is (another script?, a function?, environment variable? it's not an OS command, though), but whatever it is, if it is in the same directory as complete.sh or in your path, it's probably not executable.

Hi, boss
I check the SHell again, and re-run this shell, found the error occured at line 349 404 and 406, from these lines i found there is Basic_message function here...
So...i think maybe this function can not be invoked on my Opensolaris system..
can u help me check the shell again...and help me found why only these 3 line error?
if u need any infomation.....i will provide...

thanks x 100000

Basic_message is either a script or a function that is in your Sol8 box.
You need to copy it into the Sol10 box. If it is a script, just put it in the same place as complete.sh and make it executable. If it is a function, it needs to load in your environment, or you can add it to the complete.sh script.

Hi, boss.
Thanks very much...first...
I almost understand what your mean....
As my under stand ,this basic_message is function that modified in the complete.sh....
so i need load the environment which it need....
but how can i check the different that sol8 and opensolaris, and how can i load the env which the shell need....
from the "env" command,,the output can not give me some usefull infomation...maybe i am so pool on programmer.....please help....

:frowning:

I looked over your script. It does declare Basic_message, but it declares it in bourne shell, whereas the script is running on korn shell as indicated by the first line (#!/bin/ksh).
For korn shell, the function would be declared like :

Basic_message () 
                 {  whatever is it 
                     that the function does
}

Thanks very much.....
I will try my best to re-define this Shell.