Hi All! I have a problem concatenating strings and I will be very grateful
if you could help me because I'm going crazy:

I'm using the telnet library for connecting to a router and executing the
following command:

$t->cmd("ip $nombre $servidor -prefix_len 126 -destination_ip_address
$cliente -connect_type point");

$servidor and $cliente variables contain IPv6 address that I get from a
MySQL Data Base (BLOB type). When I try to execute the command as before the
string is always truncate after the $servidor variable. Something like this:

                    ip tb-003 2001:800:10:2a04::10
                    -prefix_len 126 ...

So the router tries to execute each sentence independently.

But if I change the $servidor variable for the value it contains, the
command is not truncated and the router executes it correctly.

                    ip tb-003 2001:800:10:2a04::10 -prefix_len 126 ...

Why does the string is truncated?
It could be due to the ":" character?
It could be due to the BLOB type of the variable in the MySQL Data Base?

Thanks in advance,

Miguel Angel

*****************************
Madrid 2003 Global IPv6 Summit
Presentations and videos on-line at:
http://www.ipv6-es.com



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to