|
Prev: mismatch between Perl 5.6 and Perl 5.8 in printing high precision values.
Next: How to monitor keyboard inactivity from script
From: M on 2 Apr 2008 12:01 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
From: Ben Morrow on 2 Apr 2008 12:13 Quoth "M" <no(a)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
From: ccc31807 on 2 Apr 2008 12:33 On Apr 2, 12:01 pm, "M" <n...(a)spam2.tonsjunkmail.com> wrote: > 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 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
From: Abigail on 2 Apr 2008 12:57
_ M (no(a)spam2.tonsjunkmail.com) wrote on VCCCXXVIII September MCMXCIII in <URL:news:4fGdnYBx67IlMG7anZ2dnUVZ_viunZ2d(a)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}' |