Hi Peter,
Thanks for your comment!

As I have said issue in my case was caused by duplicated data in input 
script.

Thanks!

On Saturday, March 30, 2013 11:58:28 AM UTC+2, Peter J. Holzer wrote:
>
> On 2013-03-29 01:36:06 -0700, Oleksandr Drach wrote: 
> > Hi Dormando! 
> > I try both BASH and PHP but result is the same. Here is my code: 
> > 
> > Bash: 
> > 
> > #!/bin/bash 
> > memc_src=«127.0.0.1 11211» 
> > memc_keys_values_file="/tmp/memcached.keys-values" 
> > IFS=" " 
> > while read key value 
> > do 
> > val_len=$(expr length $value) 
> > echo -e «add $key 0 2592000 $val_len\r\n$value\r» | nc $memc_src >> 
> /dev/null 
> > done < "$memc_keys_values_file" 
>
> That script has two issues: 
>
> 1. It uses «» quotes instead "" quotes in some places. I assume that they 
>    were replaced by your mailer. 
> 2. nc (at least the version I have) blocks waiting for memcached to 
>    close the connection. I had to insert a quit command. 
>
> After those changes the script successfully inserted 3000 items. 
>
>         hp 
>
>
> -- 
>    _  | Peter J. Holzer    | Der eigene Verstand bleibt gefühlt messer- 
> |_|_) | Sysadmin WSR       | scharf. Aber die restliche Welt blickt's 
> | |   | [email protected] <javascript:>         | immer weniger. 
> __/   | http://www.hjp.at/ |   -- Matthias Kohrs in desd 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to