Did you try this:
system ('. file.sh && routine');It's untested, but may give you a pointer. However, I advise against the whole principle as it will be somewhat lacking in transparency and therefore maintainability. YMMV.
It does sound a little like an XY Problem.
In reply to Re: How can i call the subroutine of the shell script and pass certain parameters to it?
by hippo
in thread How can i call the subroutine of the shell script and pass certain parameters to it?
by mkp19901
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |