in reply to wget not working from perl

It seems to work fine when I enter the web address manually thru stdin, but it doesn't do anything if I pass the argument thru the URL online.

When run manually your program has the same powers as your user account. When a web server runs the program it only has the privileges of the server. Make sure the files and folders you want to access can be changed by the web server user account on your system.

Replies are listed 'Best First'.
Re^2: wget not working from perl
by Anonymous Monk on Sep 10, 2019 at 04:54 UTC
    More specifically, make sure to give the web server user access to ONLY the files that you want the WHOLE internet to be able to access.
Re^2: wget not working from perl
by bliako (Abbot) on Sep 10, 2019 at 15:22 UTC

    Additionally, the webserver may not allow you to spawn external commands through system. This was the case for me when I used a free-hosting service once.