[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Quine, ontology, and Perl



John Carter wrote:
> On Thu, 11 May 2000, Sven Neuhaus wrote:
> 
> > Cheating is fun:
> >           perl -e'die`nc a.tm 9000`' 
> > 
> > Gee, I'm famous now!
> 
> What does 'nc' do and why do you expect a file a.tm to exist?

nc is probably "netcat" -- connect to <host> on <port> and transfer data.
a.tm == 195.126.62.76 == bigmac.neopoly.de . If you connect to this host on
port 9000, it'll send you the string "Just another Perl hacker,\n" and then
close the connection. nc takes this string and passes it to stdout, whence
it's captured by `backticks`.

Works fine on a Linux box I use.

Cheers,
Philip

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe