[Thread Prev][Thread Next][Thread Index]

"copyurl -s" with SyncMemo



-- 
For those of you using "copyurl -s" with SyncMemo, here's a much
shorter script that does the same thing:
................................................................
#!/usr/local/bin/perl5

use LWP::Simple;

if ($ARGV[0])
{
    $URL=$ARGV[0];
} 
else 
{
    print STDERR "You need to provide an URL\n";
    exit;
}

$LWP::Simple::ua->proxy(http => 'http://__PROXY_SERVER__:__PORT__');

$page = get $URL or die "Cannot get $URL\n";
print $page;

------------------------------------------------------------------
 Robert Gusick, gusick@xxxxxx, (212) 762-2986, FAX (212) 762-1012
Morgan Stanley, 750 Seventh Avenue, 12th Floor, New York, NY 10019
---------------------------------------------------------------------
********************************************
*      This is a public mailing list!      *
*  Please do not publish Sun proprietary   *
*            information here!             *
********************************************


SourceForge.net Logo