[RndTbl] Shell programming question
John Lange
john.lange at open-it.ca
Mon Apr 4 10:22:19 CDT 2005
Wow! Very nice.
Up until now I've been using that site just as a reference to solve
specific problems but I think I'll have to find the time to go through
the complete site.
BTW, for anyone who writes scripts that accept parameters, there is a
decent section on "getops". Lets you specify a whole bunch of command
line options to a script in any order. Perhaps this is old-hat for you
scripting wizards out there but it was something that always caused me
grief before I found this guide.
John
On Mon, 2005-04-04 at 10:08, Bill Reid wrote:
> John Lange wrote:
>
> > Any mention of how to use it as a two way communication?
> >
> > What I have in mind is:
> >
> > echo "GET /" > /dev/tcp/www.server.com/80
> > cat < /dev/tcp/www.server.com/80 | grep somephrase
> >
>
> From your URL: http://advbash.activeventure.net/devref1.html
>
> bash$ exec 5<>/dev/tcp/www.slashdot.org/80
> bash$ echo -e "GET / HTTP/1.0\n" >&5
> bash$ cat <&5
>
--
John Lange
OpenIT ltd. www.open-it.ca
Web Development & Hosting
Voice Over IP
(204) 885 0872
More information about the Roundtable
mailing list