in reply to perl - bash script problem

Any ideas???

Sure, check your error messages. Post sample code. Are you running your bash file with system, exec or backtics?

close FILE; chmod(0755,$file) or die "Can't chmod $file $!\n"; $ret = `$file 2>&1`; print $ret;