File: vm_user_data.sh

package info (click to toggle)
octavia 17.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,248 kB
  • sloc: python: 99,849; sh: 2,459; pascal: 450; makefile: 114; ruby: 18
file content (6 lines) | stat: -rwxr-xr-x 153 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
#!/bin/sh -v
Body=$(hostname)
Response="HTTP/1.1 200 OK\r\nContent-Length: ${#Body}\r\n\r\n$Body"
while true; do
    echo -e $Response | nc -llp 80
done