Hot answers tagged

2

You can either check (with test -s) that the file has contents, or simply use the return value of wget. Download to a temporary file, and only if the test passes, then copy to the real output: $ wget -q -O /tmp/a http://localhost/nonexistent && mv -v /tmp/a /tmp/b $ wget -q -O /tmp/a http://localhost && mv -v /tmp/a /tmp/b ‘/tmp/a’ -> ...


1

Yes. You can use it to run any program you are able to launch from a commandline. The syntax for the command is on the Microsoft site: https://technet.microsoft.com/en-us/sysinternals/psexec.aspx They give a number of examples including: psexec \\marklap c:\bin\test.exe If wget/curl is not on the remote PC you can use the -c switch to automatically copy ...


1

At the command prompt type: wget -r www.your-website.com Alternate command with an option to specify the maximum depth level depth. wget -r -l depth www.your-website.com Recursive retrieval options: -r --recursive Turn on recursive retrieving. The default maximum depth is 5. -l depth --level=depth Specify recursion maximum depth level ...



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