Hot answers tagged

2

Or write a wrapper to log it, $ sudo mv /usr/bin/wget /usr/bin/wget.orig $ sudo touch /usr/bin/wget $ sudo chmod +x /usr/bin/wget $ sudo touch /var/log/wget.log $ sudo chmod 666 /var/log/wget.log then, edit /usr/bin/wget as below #!/bin/bash echo $@ >> /var/log/wget.log /usr/bin/wget.orig $@


2

As Sufiyan Ghori stated, the error you are getting indicates you are trying to execute something that you don't have permissions to execute. Here are a few things to look at and try: See which wget you are using and check permissions (use the result from the first command as argument to the second if the argument is a path) type wget ls -l /path/to/wget ...


1

It's likely the server is configured to look for .gz file, when the requested file is not found and return an extracted contents. With HTTP, it's probably easy to set this up with Apache mod_rewrite and mod_deflate modules. Not sure, if some FTP server supports this.



Only top voted, non community-wiki answers of a minimum length are eligible