in reply to How to include bash functions file in Perl?
You didn't specify what interface your script provides to allow other processes to access its functions. You're not even clear in which language your library uses. (bash or ksh?) Helping you use an unspecified interface is not really possible.
Update: Well, you could do
$ cat lib function greet() { echo 'Hello World!' } $ bash --rcfile lib -i -c greet Hello World! $ perl -e'system(bash => ( "--rcfile" => "lib", -i, -c => "greet" ))' Hello World!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to include bash functions file in Perl?
by aceroraptor (Initiate) on May 19, 2010 at 20:36 UTC | |
by ikegami (Patriarch) on May 19, 2010 at 20:46 UTC |