See the example in the cfengine source unit_readtcp.cf -- the problem is that you have not completed the protocol properly.
Neil Watson wrote: > I'm trying to test connectivity to a web server using tcpread > vars: > > "google" string => readtcp( > "www.google.ca", > "80", > "GET /index.html", > "20"); > > If I simulate this with netcat I get the results I would expect. > nc www.google.ca 80 > GET /index.html > > This returns a page. > > However, readtcp times out. What have I missed? > -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine