[H-GEN] Running URL from Shell Prompt

Stuart Longland stuartl at longlandclan.hopto.org
Tue Nov 30 00:38:45 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Byron Ellacott wrote:
> theticus at excite.com wrote:
>
>> $ command http://somewhere.com/simple_file.html
>
>
> command = curl
>
> While the options others have suggested work, curl was specifically
> designed to do just what you're after: fetch from a URL and display to
> STDOUT.

Also, wget will do this for you:

$ wget -qO- http://somewhere.com/simple_file.html

If you don't want the output, just to trigger the script:
$ wget -qO/dev/null http://somewhere.com/simple_file.html
- --
+-------------------------------------------------------------+
| Stuart Longland -oOo- http://stuartl.longlandclan.hopto.org |
| Atomic Linux Project     -oOo-    http://atomicl.berlios.de |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| I haven't lost my mind - it's backed up on a tape somewhere |
+-------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBrAdkuarJ1mMmSrkRAhyXAJ9Jg0Px6uzlpl/+VaBmX0RVtbTg0ACgil+F
vVp+shaIYUrB/Md5rC42Q1Q=
=FW6j
-----END PGP SIGNATURE-----




More information about the General mailing list