aloknath has asked for the wisdom of the Perl Monks concerning the following question:
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")) ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling bash functions inside perl script
by roboticus (Chancellor) on Apr 04, 2007 at 11:08 UTC | |
|
Re: Calling bash functions inside perl script
by kyle (Abbot) on Apr 04, 2007 at 11:02 UTC | |
|
Re: Calling bash functions inside perl script
by lima1 (Curate) on Apr 04, 2007 at 11:06 UTC |