panos80
April 23rd, 2010, 10:36 AM
Hi All,
I'm having a problem when trying certain Perl scripts. More specifically, when the Perl script tries to run a 'system' function that contains the redirection (?) symbol '>&' I get the following error message:
sh: Syntax error: Bad fd number
I'm using bash so I don't really understand why would I get an error message from sh...
If I modify the system function so that it doesn't contain the '>&' symbol (and any subsequent files, of course) then the command executes but the files that were supposed to be generated are not and the script crashes anyway!
Any ideas?
I'm having a problem when trying certain Perl scripts. More specifically, when the Perl script tries to run a 'system' function that contains the redirection (?) symbol '>&' I get the following error message:
sh: Syntax error: Bad fd number
I'm using bash so I don't really understand why would I get an error message from sh...
If I modify the system function so that it doesn't contain the '>&' symbol (and any subsequent files, of course) then the command executes but the files that were supposed to be generated are not and the script crashes anyway!
Any ideas?