Trying to push text to pager via URL

Scott Lanning slanning at buphy.bu.edu
Mon May 28 22:27:57 EDT 2001


On Mon, 28 May 2001, Scott Ehrlich wrote:
>I have an Arch Wireless work pager (alpha-numeric) and Arch's web site
>provides a URL to send a page through.  How can I send text to the URL via
>a shell script?   I currently try to send a message to <my
>pager>@archwireless.net but pushing through the URL would be faster and
>more reliable.
>
>I often use wget to retrieve/pull info.   What can I use to push info?

Pipe it to telnet. Example for bash (all one line):

    (echo -ne "GET /Tools/test.pl?testing=hohoho HTTP/1.0\n\n"
    && sleep 1) | telnet localhost 80

I put `sleep 1` because the server needs the connection
to stay up a bit (maybe for returning HTML, but you won't see that);
otherwise, apache seemed to ignore it (nothing showed up in
access_log).

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list