Download entire site, use command:
wget -m http://www.yoursite/yourfolder/
If you want the pages that site links than using:
wget -H -r --level=1 -k -p http://www.yoursite/yourfolder/
If you want to download only jpg files, then use:
wget -A .jpg -l 3 -r http://www.yoursite/yourfolder/
Some args of wget command :
Specify recursive download.
Maximum recursion depth (inf or 0 for infinite).
Make links in downloaded HTML point to local files.
Get all images, etc. needed to display HTML page.
Ignore robots.txt files and just download
Don't go up to the parent directory
Only download NEWER files than what's already been downloaded
No directory, by default wget creates a directory
specified number of seconds between the retrievals
the time is vary between 0.5 and 1.5 * wait seconds ( see wait option)
If you receive: error: ‘memset’ was not declared in this scope
main.cpp:394: error: 'memset' was not declared in this scope
Fix it by including: #include <cstring> in the source of C++file. If you use C then use : #include <string.h> .
So I started dabbling with assembly language programming a couple of days ago. This was the next logical step in the “going lower down” move I have been doing ever since I started writing programs in Visual Basic some years ago (there, I admitted it). Since then I went through… Continue Reading Hacking on assembly code: Dynamic memory allocation on stack?
You can install Skype from the repository. Go on :
First, create a file named
Put this code on this file :
Save the file. Use :
This is all.
The easy way to download movies from youtube on Linux is: youtube-dl
# yum install youtube-dl.noarch
Use this command to show help options of this script.
$ youtube-dl --help
Usage: youtube-dl [options] video_url
-h, --help print this help text and exit
-v, --version print program version and exit
-u USERNAME, --username=USERNAME
-p PASSWORD, --password=PASSWORD
-o FILE, --output=FILE
output video file name
-q, --quiet activates quiet mode
-s, --simulate do not download video
-t, --title use title in file name
-l, --literal use literal title in file name
-n, --netrc use .netrc authentication data
-g, --get-url print final video URL only
-2, --title-too used with -g, print title too
To download a movie from youtube, just write command:
$ youtube-dl http://www.youtube.com/watch?v=NNFYOX3oNvw
Retrieving video webpage... done.
Extracting URL "t" parameter... done.
Requesting video file... done.
Video data found at http://v9.lscache6.c.youtube.com/videoplayback?ip=0.0.0.0&sparams
Retrieving video data: 100.0% ( 97.93k of 97.93k) at 3.37M/s ETA 00:00 done.
Video data saved to NNFYOX3oNvw.flv
Try it’s a good script.
As we know, we used the following syntax will to create a default script bash. First line: signifies that is the bash script:
Every line and everything after the # is treated as a comment:
A shell variable may be assigned using the following syntax: variable=value_of_variable Example:
… Continue Reading BASH shell scripting tips – part 1 : Working with shell variables.
Open one xterm or console. Use command cd /etc/init.d/ . You are now on /etc/init.d/ directory. Create a file named my_filename. Add your script to this file with the following lines at the top:
# chkconfig: 345 85 15
# some description for your file
Enter this in the shell: chkconfig –add my_filename Use command chmod u+x my_filenameto make this… Continue Reading Fedora 12 – How can we run one script when system startup?
In this tutorial, we show you how to do text-to-speech under Linux with the Festival application. First, you need to install it on your system. On my Fedora 12 I used this:
Try this command to see if it will allow you to use festival:
Now you can… Continue Reading Linux Text-To-Speech Tutorial