Tag Info

New answers tagged


simple command to get the html page and compressed it or get any file and compressed. $ wget -qO - <url> | gzip -c > file_name.gz for more information about the option . use man command .


wget -O | gzip -c > file_name.gz it mean wget get the data from www regardless their type. and output that file. it is either html or file from ftp. and gzip will write that file in the compressed form. for more info read the help $ man wget $ man gzip $ wget --help ( for just option of the wget) $ gzip --help


wget -qO - |gzip -c > file_name.gz -c for stdout . that's '>' used. the file get from wget serialize to file_name.gz using standard output library. -qO to send output file


Do you really want to tar the file or are you looking for downloading a file into a compressed form. Tarring a file is just bundling (uncompressed) files into an (uncompressed) archive. If you want to download a file into a compressed file you can use: wget -qO - <url>|gzip -c - > file.gz


This is not going to work the way you want it to. A file (obviously with a filename) needs to be stored in the tar. That bit (the filename) is obviously missing if you just pipe the contents of the download to tar. I don't see any way to tell tar that it should pack stdin and specify a filename for that. That said, I really do not say a way to achieve that ...


You can't deal with input streams in that way. It is designed to deal with files. If you had managed to create an archive as you describe, what would it look like? How would you untar it? There would be no filename to create, just data. I think your best bet is to get the file and tar it in two separate commands. If you don't want the file to remain on ...


with lftp: lftp ftp://user:password@host -e "get -E remotefile; bye"


with curl: curl ftp://example.com/ -X 'DELE myfile.zip' --user username:password


I think you need the -i option. e.g. echo world | xargs -i echo hello{} This will output helloworld (no space). The {} is replaced with the value, instead of the value being added to the end, as a separate argument.


You can turn off a lot of output with the -nv option. If that's too little verbosity for you, you can tune the progress report with the --progress option, but I think you can't remove it altogether. The dot:mega report style produces one dot per 64kB (instead of the default with a dot per 1kB). wget --progress=dot:mega … Recent versions also support ...


wget includes features to support this directly: wget -r -A "*.ai,*.cdr" 'address-of-page-with-hyperlinks' -r enables recursive mode so it will download more than simply the given URL, and -A limits the files it will download and keep in the end.


Read the page with curl Filter for hyperlinks with grep. Note that this exploits the fact that they are all formatted consistently (as <a href="..."). An HTML/XML parser really should be used for anything even slightly more complicated. Cut the hyperlink address out with grep -o, filtering with grep again to extract only links who's target has the ...


Use quotation mark for your post data, like this curl -L --data-urlencode "semno=7&rectype=1&rollno=10400111005" http://wbutech.net/show-result.php Also you should not use --data-urlencode for this situation, use -d parameter. Sample output (-d parameter): $ curl -d "post1=ddş5%%%%iiüğ&post2=dfdfişğ**?" http://reddoc.net/curl.php GET:Array ...


Use More Quotes™ - the literal & signs are interpreted as command separators.


I think the right answer here is the --no-parent option: -np --no-parent Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.


The -m option of wget is the unlimited recursion -m --mirror Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to ‘-r -N -l inf --no-remove-listing’. Thanks for helping.


NSS error -12286 According to NSS documentation, -12286 means: SSL_ERROR_NO_CYPHER_OVERLAP "Cannot communicate securely with peer: no common encryption algorithm(s)." The local and remote systems share no cipher suites in common. This can be due to a misconfiguration at either end. It can be due to a server being misconfigured to use a ...

Top 50 recent answers are included