develooper Front page | perl.beginners | Postings from May 2012

[Solved] Can't find string terminator

Thread Previous | Thread Next
From:
Alvin Ramos
Date:
May 10, 2012 09:35
Subject:
[Solved] Can't find string terminator
Message ID:
33E8B1D9-99A3-46C1-AD05-96560E953EB8@theflux.net
Thanks for your help "qq{mysqldump ..." worked perfectly!

On May 9, 2012, at 10:44 PM, Owen wrote:

> On Wed, 9 May 2012 22:02:00 -0400
> Alvin Ramos <wof@theflux.net> wrote:
> 
>> Have a simple perl script that will run a mysql dump, but I'm getting
>> 
>> Can't find string terminator '"' anywhere before EOF at ./ssh.pl line
>> 5
>> 
>> My code, I assume the " is throwing it all off, but the / didn't help:
>> 
>> use Net::SSH::Perl;
>> my $ssh = Net::SSH::Perl->new("heaven.theflux.net");
>>    $ssh->login("root", "temp");
> 
> 
> 
> Look at this section
> 
>>    $ssh->cmd("mysqldump -uroot -pnew-password -t -T/var/lib/mysql
>> free ExData --fields-enclosed-by=\"\ --fields-terminated-by=\|\");
> 
> 
> Count the ". One way or the other, the parser cannot find a matching "
> 
> 
> 
> -- 
> 
> 
> Owen


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About