Hi,

I try to execute the following line on Solaris:
system ("rsh","btzp17","`/usr/local/bin/perl -e "foreach $line
(@allfiles) { print $line;}"`") ;

@allfiles is a list of pathnames and files
The lines should be printed via a rsh on a station called btzp17.

If I execute
rsh btzp17 /usr/local/bin/perl -e 'foreach $line (@allfiles) { print
$line ;}'
at the command line it works.

>From within the script it doesn't work. I receive the following error:
Bareword found where operator expected at -e line 1, near "/var/adm"
        (Missing operator before adm?)
syntax error at -e line 1, near "/var/adm "
Execution of -e aborted due to compilation errors.
(The /var/adm is expanded from @allfiles)

Thanks for any help,
Stefan.

Reply via email to