Hello lpl,
Since you did not post any sample code, or parameters I can only assume what you are trying to achieve or what you have already attempted.
I checked Google and I found this:
In bash, etc, source is a builtin that means read this file, and interpret it locally (a little like a #include).
In this context that makes no sense - you either need to remove source from the command and have a shebang (#!) line at the start of the shell script that tells the system which shell to use to execute that script, or you need to explicitly tell system which shell to use, e.g. system "/bin/sh", "/some/generic/script"; "with no comment about whether it's actually appropriate to use system in this case".
Source of the answer (How to run “source” command (Linux) from a perl script?).
I would also recommend to read (How to "source" a shell file in Perl?) it contains some nice answers to similar question and also (Perl system calls in csh Not executing!).
My question here is also, why to combine both? Is there something that you are trying to do and it can not be done in Perl? Provide us some examples, description of what you are trying to achieve and sample code.
Hope this helps.
Seeking for Perl wisdom...on the process of learning...not there...yet!
|