:) fishsticks$ exec 5<>/dev/tcp/www.perl.org/80 :) fishsticks$ echo -e "GET / HTTP/1.0\nHost: www.perl.org\n\n" >&5 :) fishsticks$ head -1 <&5 HTTP/1.1 200 OK :) fishsticks$ ls /dev/tcp ls: /dev/tcp: No such file or directory
Potentially handy, yes, but yeeesh.
distressed
2005-09-07 07:56 pm (UTC)
2005-09-07 08:00 pm (UTC)
2005-09-07 08:08 pm (UTC)
2006-01-07 01:14 pm (UTC)
2005-09-08 01:15 am (UTC)
2005-09-08 02:28 am (UTC)
I do get the smiley-return-value thing. I may have to start using something like that!
2005-09-08 03:58 am (UTC)
It's just icky but neato! bash now supports sockets, and the syntax for accessing them uses "paths" that don't exist anywhere but in bash's little imagination.
2006-01-06 08:55 pm (UTC)
2006-01-07 04:45 am (UTC)
(Anonymous)
2006-01-07 07:03 pm (UTC)