M
mike
hi
i have a perl listing like this
$command = qq(perl -e 'while ( </tmp/*.txt> ) { print STDOUT $_ if -s ; }' );
my $telnet = Net::Telnet-> new
(
Timeout => 30,
Host=> server
);
$telnet-> login($name, $pass);
@listing = $telnet-> cmd("$command");
$telnet->close;
print @listing;
the output of @listing gives me
/tmp/test.txt/tmp/test2.txtserver
how can i make it append a newline such that
/tmp/test.txt
/tmp/test2.txt
server
i tried to change my $command to
$command = qq(perl -e 'while ( </tmp/*.txt> ) { print STDOUT "$_\n" if -s ; }' )
but the @listing gives me
" if -s ; }'
thanks for any help
i have a perl listing like this
$command = qq(perl -e 'while ( </tmp/*.txt> ) { print STDOUT $_ if -s ; }' );
my $telnet = Net::Telnet-> new
(
Timeout => 30,
Host=> server
);
$telnet-> login($name, $pass);
@listing = $telnet-> cmd("$command");
$telnet->close;
print @listing;
the output of @listing gives me
/tmp/test.txt/tmp/test2.txtserver
how can i make it append a newline such that
/tmp/test.txt
/tmp/test2.txt
server
i tried to change my $command to
$command = qq(perl -e 'while ( </tmp/*.txt> ) { print STDOUT "$_\n" if -s ; }' )
but the @listing gives me
" if -s ; }'
thanks for any help