Created
January 9, 2012 16:28
-
-
Save hernanflores/1583687 to your computer and use it in GitHub Desktop.
Comandos remotos memcached
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
host=localhost | |
port=11211 | |
cmd="delete $1" | |
echo "about to exec: $cmd" | |
( echo open ${host} ${port} | |
sleep 1 | |
#echo -e "\r" | |
#sleep 1 | |
echo $cmd | |
#sleep 1 | |
#echo -e "\r" | |
sleep 5 | |
echo exit ) | telnet | |
echo "end remove_key" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lo importante acá es el manejo del telnet de manera no interactiva.