source is not an executable file, but a builtin command of the shell. Therefore you need to invoke it through the shell:
system 'bash -c "source yourscript.sh"'
Anyway, using source doesn't make sense in that context. You probably should just invoke your shell script directly.
In reply to Re: system & exec
by haj
in thread system & exec
by dideod.yang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |