Posted on 08 February 2010.
I found this when using HTTP authentication, not sure if this is a bug on wget or on the server side. This is wget version 1.10.2 compiled on MacOS X 10.4.8 with gcc 4.0.1 and make 3.80, which shows this behaviour: $> wget -O - --no-cache -d --http-user=admin --http-password=XXXXXX http://192.168.128.23/admin/test/advanced
Setting --http-user (httpuser) to admin
Setting --http-password (httppassword) to XXXXXX
DEBUG output created by Wget 1.10.2 on darwin8.8.2.
Posted in Linux
Posted on 08 February 2010.
It seems that there is no way to force overwriting every files when downloading files using wget. However, use -N option can surely force downloading and overwriting newer files.
2 comments:
Posted in Linux
Posted on 08 February 2010. Tags: lynx
Lynx is a text-only Web browser for use on cursor-addressable character cell terminals. It is released as Free software under the GNU General Public License. Supported protocols are Gopher, HTTP, HTTPS, FTP, WAIS, and NNTP.
Posted in Linux
Posted on 08 February 2010.
$ rmdir /tmp/docs
If directory is not empty you will get an error:
$ rmdir letters
Output:
rmdir: letters: Directory not empty
You can change directory to find out files:
$ cd letters
$ ls Continue Reading
Posted in Linux
Posted on 08 February 2010. Tags: Plesk
Plesk uses PHP’s open_basedir setting to restrict PHP scripts to their domain’s httpdocs directory (and /tmp) for security. If you check the domain’s error_log you’ll see that the open_basedir restriction is in effect (or enable display_errors to see errors in your browser, but this is not recommended for production sites).
You can override a domain’s open_basedir setting if you want, for instance you can add domain2′s path2 directory to domain1′s open_basedir like this:
Code:
<Directory /var/www/vhosts/domain1/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/domain1/httpdocs:/tmp:/var/www/vhosts/domain2/httpdocs/path2"
</Directory>
See Including Directives into Web Server Configuration File for instructions on adding custom Apache settings for a domain.
Posted in Linux, Plesk
Posted on 15 January 2010.
How To scp, ssh and rsync without prompting for password
Whenever you need to use scp to copy files, it asks for passwords. Same with rsync as it (by default) uses ssh as well. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password is asked every time. I even had the idea of writing an expect script to provide the password. Of course, I didn’t. Instead I browsed for a solution and found it after quite some time. There are already a couple of links out there which talk about it. I am adding to it… Continue Reading
Posted in Linux
Posted on 15 January 2010.
http://www.mikerubel.org/computers/rsync_snapshots/
https://calomel.org/rsync_tips.html
http://rootprompt.org/article.php3?article=8976
http://www.comentum.com/rsync.html
Posted in Linux
Posted on 10 January 2010.
How to Create a First Shell Script
Shell scripts are short programs that are written in a shell programming language and interpreted by a shell process. They are extremely useful for automating tasks on Linux and other Unix-like operating systems.
A shell is a program that provides the traditional, text-only user interface for Unix-like operating systems. Its primary function is to read commands (i.e., instructions) that are typed into a console (i.e., an all-text display mode) or terminal window (i.e., all-text mode window) and then execute (i.e., run) them. The default shell on Linux is the very commonly used and highly versatile bash.
A programming language is a precise, artificial language that is used to write computer programs, which are sets of instructions that can be automatically translated (i.e., interpreted or compiled) into a form (i.e., machine language) that is directly understandable by a computer’s central processing unit (CPU).
A feature of bash and other shells used on Unix-like operating systems is that each contains a built-in programming language, referred to as a shell programming language or shell scripting language, which is used to create shell scripts. Among the advantages of using shell scripts are that they can be very easy to create and that a large number are already available in books and on the Internet for use with or without modification for a wide variety of tasks. Shell scripts are also employed extensively in the default installations of Unix-like operating systems. Continue Reading
Posted in Linux
Posted on 09 January 2010. Tags: development, ibindu, pear, PHP, Plesk, scripting, ubuntu, vhost.conf
#apt-get install lynx
#lynx -source http://pear.php.net/go-pear | php
press 1 and change the path to /usr/share Continue Reading
Posted in Linux, PHP, Plesk
Posted on 03 January 2010.
http://www.thoughtpolice.co.uk/vmware/
VMware lets you run another computer in your computer. Try out another operating system, test a different platform, preview a new distro. Hopefully this page of VMware images, or “Virtual Appliances” is useful. Continue Reading
Posted in Linux
Advait said…
This worked for me on linux and solaris Continue Reading