.def file in HP-UX Shell scripting

Hi Pals,

I need some information related .def file in HP-Ux shell scripting. What actaully a .def file contains. It is having all definitions of some functions. But what is the relationship between a .def file and shell script. Can anyone give some examples.

Thanks in Advance.

Best Regards,
Manu

I'm not familiar with the specific situation on HP-UX.

But in general you include a file containing all kind of function definitions into another script.

That way you don't need to define the same functions in each and every script over and over.

At the beginning of your script just add the line:

. <pathtodeffile>/<deffile>

DOT SPACE <pathtodeffile>/<deffile>

That way all functions defined in the .def file are available within your script.