![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| practice tests- Unix Korn Shell Scripting | eswasas | UNIX for Dummies Questions & Answers | 0 | 02-14-2007 09:40 AM |
| how to convert from korn shell to normal shell with this code? | forevercalz | Shell Programming and Scripting | 21 | 11-22-2005 11:18 PM |
| KORN Shell - Spawn new shell with commands | frustrated1 | Shell Programming and Scripting | 2 | 04-20-2005 11:23 AM |
| Korn Shell | gpanesar | Shell Programming and Scripting | 4 | 03-25-2005 02:46 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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????
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |