[Varnish] #1314: varnishadm and pipe

Varnish varnish-bugs at varnish-cache.org
Tue Jun 4 21:43:33 CEST 2013


#1314: varnishadm and pipe
-------------------------------+------------------------
 Reporter:  johnnyrun          |       Type:  defect
   Status:  new                |   Priority:  normal
Milestone:  After Varnish 2.1  |  Component:  varnishadm
  Version:  trunk              |   Severity:  normal
 Keywords:  varnishadm pipe    |
-------------------------------+------------------------
 Hi dev!

 "man varnishadm" say something like:

 ---
 EXAMPLES
        Some ways you can use varnishadm:

        varnishadm -T localhost:999 -S /var/db/secret vcl.use foo
        echo vcl.use foo | varnishadm -T localhost:999 -S /var/db/secret
        echo vcl.use foo | ssh vhost varnishadm -T localhost:999 -S
 /var/db/secret
 ---

 unfortunately, piping to varnishadm does not work anymore.
 I think it is useful to do something like:

 cat myHugePurgeList |varnishadm -S secret

 But it enters in a infinite loop (varnishadm.c:279) due to probably
 readline problem.

 I made some mod resuming code pushed out from GH commit
 a5d5ecdea86ba6d9dcb036a78f7606c693f42190.

 You find by push request on github.
 Don't know if it is the proper way.
 I simply made some cut-paste from another version adding some istty() to
 avoid completion detection and banner output.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1314>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list