Switching users in a bash script?
brandon_peirce at hotmail.com
Sun Aug 27 17:32:14 PDT 2006
Luca Dionisi wrote:
>On 8/27/06, Angel Tsankov <fn42551 at fmi.uni-sofia.bg> wrote:
>>Btw, how do I call a function in a bash script from another bash script?
>Try putting all your functions alone in a file, then source that file
That's one possibility that definitely works.
AFAIK if you 'export my_func' in the first script, then it will be visible
a child script.
More information about the lfs-support