The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need to create file from shell scripting smr_rashmy Shell Programming and Scripting 4 01-28-2008 07:59 PM
file permissions using shell scripting barbus Shell Programming and Scripting 11 10-02-2007 11:51 AM
How do i iterate thru each line of a file in shell scripting? Ravi Varma Shell Programming and Scripting 2 09-05-2007 08:28 PM
Shell scripting adding text to top of file meadhere UNIX for Dummies Questions & Answers 7 07-05-2007 06:31 AM
file activity (open/closed) file descriptor info using KORN shell scripting Gary Dunn UNIX for Dummies Questions & Answers 3 06-07-2004 10:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-24-2007
Registered User
 

Join Date: Jan 2007
Posts: 9
.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
Reply With Quote
Forum Sponsor
  #2  
Old 01-24-2007
Registered User
 

Join Date: Jan 2007
Posts: 366
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0