Tag Info

New answers tagged

0

Not sure what is actually wrong on your side without the actual wget/curl command, but this wget "http://xx.xx.xx.145:8888/snapshot.cgi?user=wxcam&pwd=getsomewx" --output-document cam_$(date +%Y%m%dT%H%M%S).jpeg worked. I did this both from a computer where I previously had used the browser to access the cam and from a system where I did not do so (in ...


1

A newer, open-source multi-platform client, written in Go called drive is quite nice and full-featured, and also is in active development. Examples The pull command downloads data from Google Drive that does not exist locally, and deletes local data that is not present on Google Drive. Run it without any arguments to pull all of the files from the ...


0

In Debian derivatives the size of each .deb file is stored in the list of packages, so you can retrieve it without downloading anything at all. In fact apt-get --print-uris gives you the information directly: $ apt-get install nginx --print-uris -qq Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done ...


4

The typical way to get the file size without downloading it would be to issue a HTTP HEAD request and hope for the server to send the size back in the Content-Length header. For static files like deb files typically, servers are likely to send back that information though there's no guarantee. There are various tools that can send those HTTP HEAD request. ...


0

To download a list of files, you can use wget -i file, where file is the name of a file with a list of URL(s) to download. For more details you can review the help page: man wget. Constructing such a list of URLs from your list of words is easily done with text processing tools like sed.


0

This is a HUGE security risk, but wget www.website.com cronjob.txt crontab -u username cronjob.txt But your crontab looks wrong. Why do you need to sudo, cron jobs run as the user they are installed for. So you would be better to just put the lines in asterisk's crontab. sudo crontab -u asterisk then add 0 3 * * * ...


0

wget -O - www.website.com/cronjob.gz|zcat|sudo tee -a /etc/crontab or crontab -l | cat - <(wget -O - www.website.com/cronjob.gz|zcat)| crontab - The disadvantage of these commands is that they do not check to verify that the commands do not exist. You are better off using crontab.d or cron.d directories if they exist and creating a file in them with ...


0

Inspired by another answer to another question, I suggest using proxychains-ng (which is the newer version of proxychains). Download, compile, and optionally install proxychains-ng. Create a proxychains.conf file in the current directory, or at ~/.proxychains/proxychains.conf, or at /etc/proxychains.conf. Alternatively, create one file anywhere else, or ...


4

The default behaviour of wget with -r is to store downloaded files in directories matching the URL, so you could just let it do that: wget -r -np -p -i myurls (where myurls is your file containing the URLs to download). The resulting mass of directories may not be most pleasing to you, but it will ensure you have everything you need to display the ...


5

You will need the index.html files since the various links in the webpages will rely on them. I would just save each webpage to its own directory: while read url; do mkdir "$url"; cd "$url" wget -r -np -nH --cut-dirs=1 -p -k "$url" cd ../ done As it turns out, wget already does this by default so use Stephen's approach instead.


0

The format is Netscape format as stated in the man page and this format is: The layout of Netscape's cookies.txt file is such that each line contains one name-value pair. An example cookies.txt file may have an entry that looks like this: .netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103 Each line represents a single piece ...


1

I don't think there is an exact equivalent to the last detail, but something like this might work: curl -L --connect-timeout 5 --retry 1 --referer http://www.example.com -o image.jpg http://www.example.com/abcdefg123.jpg


0

curl --retry 1 --connect-timeout 5 -o image.jpg -e 'http://www.example.com' http://www.example.com/abcdefg123.jpg There is also timeout option -m for the operation, depending on what you need.



Top 50 recent answers are included