Its throwing this error : Test main /usr/bin/test: /usr/bin/test: cannot execute binary file Any idea how to do this ? Regards, Alok.Shell script : #!/bin/bash test() { echo "test:Inside tests.sh..." } export -f test Perl Script : #!/usr/bin/perl -w use strict ; print "Test main \n" ; system (("/bin/bash", "test")) ;
In reply to Calling bash functions inside perl script by aloknath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |