![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| practice tests- Unix Korn Shell Scripting | eswasas | UNIX for Dummies Questions & Answers | 0 | 02-14-2007 12:40 PM |
| how to convert from korn shell to normal shell with this code? | forevercalz | Shell Programming and Scripting | 21 | 11-23-2005 02:18 AM |
| KORN Shell - Spawn new shell with commands | frustrated1 | Shell Programming and Scripting | 2 | 04-20-2005 02:23 PM |
| Korn Shell | gpanesar | Shell Programming and Scripting | 4 | 03-25-2005 05:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
korn best practice for shell
I need to create a korn function script that has parameter checking and a help section if the parameter count is wrong, then how do I create a library to store these functions and allow them to be called by others????
|
|
||||
|
One way:
put your reusable function code in a separate file, let's call in MY_INCLUDE Code:
#!/bin/ksh # myscript.sh # include the functions . /path/to/MY_INCLUDE # your main code goes here ............... exit 0 |
| Sponsored Links | ||
|
|