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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Call a function in another script

Reply to Message Icon

Name: Alley
Date: May 27, 2002 at 13:16:10 Pacific
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



Sponsored Link
Ads by Google

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

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


0

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

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


0

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


hi alley,

Instead of using print try to use echo.

good luck....


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Call a function in another script

calling one function in another ksh www.computing.net/answers/unix/calling-one-function-in-another-ksh/8005.html

Shell Scripting - Function www.computing.net/answers/unix/shell-scripting-function/6001.html

using functionality in another ksh www.computing.net/answers/unix/using-functionality-in-another-ksh/8003.html