[Varnish] #440: Script Using telnet
Varnish
varnish-bugs at projects.linpro.no
Fri Mar 20 10:58:40 CET 2009
#440: Script Using telnet
-------------------------+--------------------------------------------------
Reporter: commandos | Owner: phk
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution: worksforme
Keywords: |
-------------------------+--------------------------------------------------
Changes (by phk):
* status: new => closed
* resolution: => worksforme
Comment:
telnet is not very good at reading input from a pipe, it will usually
close the connection as soon as the pipe is closed, not waiting for
response.
the example above with nc(1) is probably better, but if you do not have
nc(1) on your system you can try this hack:
(echo "purge.url test.html" ; sleep 2 ) | telnet localhost 8787
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/440#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list