london suede - can't get enough
underworld - dirty epic
new order - True Faith
orbital - Halcyon
BRMC - love burns
death in vegas - dirt
Wednesday, November 15, 2006
Monday, November 13, 2006
which muppet are you?
The continuation of the star wars personality test, here's the link to the muppet personality test.
Well this is my results and I can say I'm somewhat not suprised.
Well this is my results and I can say I'm somewhat not suprised.
You Are Gonzo the Great |
![]() "Is something burning in here? Oh, it's just me." You're a total nutball who will do anything for attention. The first to take a dare, you'll pull almost any stunt. You're one weird looking creature, but your chickens don't mind! |
Monday, November 06, 2006
ftp scripts without passwords
As old as ftp is, i'm sure its still a very common method of file transfer in most interfaces.
Here's how to write a simple ftp script on unix or windows without having to worry about those passwords.
Using EOF
Probably the most common is to use the EOF (end of file) method. Its important to know that there cannot be any spaces in front of the last 'EOF' line.
ftp -nv hostname << EOF
user USERNAME PASSWORD
cd directory
prompt
passive
asc
mput filename.*
bye
EOF
Using .netrc
The other method of saving passwords for multiple scripts is to use a .netrc file which can be created in the user's home directory
$ cd $HOME
$ vi .netrc
add the following line into the file
machine login password
$ chmod 500 .netrc
You should be able to ftp without prompts. to test, just type
$ ftp
you should be logged in. the downside is that this forces you to log in as that specific user. However lets face it, if you're still using ftp to move stuff around, this shouldn't bother you one bit.
Personally, I would recommend that sftp or scp be used instead. pub key management is so much more convienient.
Here's how to write a simple ftp script on unix or windows without having to worry about those passwords.
Using EOF
Probably the most common is to use the EOF (end of file) method. Its important to know that there cannot be any spaces in front of the last 'EOF' line.
ftp -nv hostname << EOF
user USERNAME PASSWORD
cd directory
prompt
passive
asc
mput filename.*
bye
EOF
Using .netrc
The other method of saving passwords for multiple scripts is to use a .netrc file which can be created in the user's home directory
$ cd $HOME
$ vi .netrc
add the following line into the file
machine
$ chmod 500 .netrc
You should be able to ftp without prompts. to test, just type
$ ftp
you should be logged in. the downside is that this forces you to log in as that specific user. However lets face it, if you're still using ftp to move stuff around, this shouldn't bother you one bit.
Personally, I would recommend that sftp or scp be used instead. pub key management is so much more convienient.
Saturday, November 04, 2006
north lakes, actually playing
Subscribe to:
Posts (Atom)
dead pi
Well, I guess it has to happen at some point. the home automation raspberry pi has died. Much to do with the stupid Strontium mini SD card. ...

-
Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa b...
-
I spoke too soon, just as I was commenting on how stable Windows XP was in Apple is Evil , Windows XP decided to go blue screen on me. At th...
-
Since the discovery of blogs and wikis, I have never found that much fun in documentation. There is a certain element of funlyness, if there...
