Computing.Net > Forums > Unix > Call a function in another script

Call a function in another script

Reply to Message Icon

Original Message
Name: Alley
Date: May 27, 2002 at 13:16:10 Pacific
Subject: Call a function in another script
Comment:

(It's about Korn Shell.)I wrote a few functions into another script and call them from main script. But all the "print" commands on sub-scripts did not work.
Is there anyone can help me to fix it?

Thanks


Report Offensive Message For Removal


Response Number 1
Name: PaulS
Date: May 28, 2002 at 06:55:27 Pacific
Reply: (edit)

Not sure what you mean. Make sure you define your functions at the top of your program before you begin executing the main script.


Report Offensive Follow Up For Removal

Response Number 2
Name: LANkrypt0
Date: May 28, 2002 at 07:37:58 Pacific
Reply: (edit)

Can you provide some examples of what exactly you mean? Bits of code? How one script relates to another etc?


Report Offensive Follow Up For Removal

Response Number 3
Name: den
Date: May 28, 2002 at 13:29:10 Pacific
Reply: (edit)


hi alley,

Instead of using print try to use echo.

good luck....


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Call a function in another script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge