![]()
Linux, Unix, /etc/$ To set up this Linux system, do I really have to type long,
cryptic, frequently inconsistent and undocumented commands with
occasional long strings of hex digits?
# Yeah. You got a problem with that?
|
Sponsored links (requires javascript):
#!/bin/ksh
#get_http_header.last-modified: get Last-Modified header of a webpage
host=${1?need hostname}
port=${2:-80}
url=${3:-/}
#echo "HEAD http://$host$url HTTP/1.0\n\n" |
#nc -w 30 $host $port |
2>/dev/null lynx -dump -head -connect_timeout=30 http://$host$url |
grep '^Last-Modified'