Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Download A File

0 views
Skip to first unread message

M

unread,
Apr 2, 2008, 12:01:02 PM4/2/08
to
I have a script in /cgi-bin/. I want it when called to download a dynamic
file, actually an image to a file on the server. Basically pull a graph
from whats actually a router of mine, save it to /temp_images.

I have tried using: "system "/usr/bin/wget..." with no luck.

Can someone give me a shove in the right direction? I cannot seem to find
where the perl "get" command supports simply saving to a directory but I may
have missed something and many times do.

Thanks.

Matt


Ben Morrow

unread,
Apr 2, 2008, 12:13:09 PM4/2/08
to

Quoth "M" <n...@spam2.tonsjunkmail.com>:

> I have a script in /cgi-bin/. I want it when called to download a dynamic
> file, actually an image to a file on the server. Basically pull a graph
> from whats actually a router of mine, save it to /temp_images.
>
> I have tried using: "system "/usr/bin/wget..." with no luck.

An actual error message is more use than 'no luck'. Does your wget live
in /usr/bin (mine doesn't)?

> Can someone give me a shove in the right direction? I cannot seem to find
> where the perl "get" command supports simply saving to a directory but I may
> have missed something and many times do.

See LWP::Simple::getstore.

Ben

ccc31807

unread,
Apr 2, 2008, 12:33:55 PM4/2/08
to

We have successfully used pscp for going on several years to upload
and download all kinds of files, large and small.

www.chiark.greenend.org.uk/~sgtatham/putty/download.html

CC

Abigail

unread,
Apr 2, 2008, 12:57:34 PM4/2/08
to
_
M (n...@spam2.tonsjunkmail.com) wrote on VCCCXXVIII September MCMXCIII in
<URL:news:4fGdnYBx67IlMG7anZ2dnUVZ_viunZ2d@haugcommunications>:
\\ I have a script in /cgi-bin/. I want it when called to download a dynamic
\\ file, actually an image to a file on the server. Basically pull a graph
\\ from whats actually a router of mine, save it to /temp_images.
\\
\\ I have tried using: "system "/usr/bin/wget..." with no luck.

Perhaps /usr/bin/wget... doesn't exist? I dunno, just guessing as you
don't give any clue what so ever what goes wrong. Perhaps you are working
on a Windows machine?

Abigail
--
perl -e 'for (s??4a75737420616e6f74686572205065726c204861636b65720as?;??;??)
{s?(..)s\??qq \?print chr 0x$1 and q ss\??excess}'

0 new messages