Wednesday, December 13, 2006

Presents from afar

I got home from work today to find a package from China, Lulu card and present had finally arrived. She sent me a card and a really wonderful copy of a famous Chinese painting. It is massive I was going to photo it but its too big, I am reallly impressed such a lovely item, I hope it wasn' too expensive.

Anyway thanks very much for such a wonderful gift. It is a shame it took so long by the looks of it the package did not leave China until 1st December.

This evening I made it to the gym for a jog my arms are still too sore for weights. Tried to do some more work on Becky's website managed to get the enquiry form working. I am still not happy about the design but it its good as a starter for 10.

xargs

Found a really useful tool today call xargs used it to copy a list of files, I had a file "static.list" which had a list of files which I needed to copy one per line.

Running the following

cat static.list |xargs -t -i rsync -v CB_DATA/{} rsync://192.168.0.226/opt/advancesbak/CB_DATA/

Run the rsync command

rsync -v CB_DATA/filename rsync://192.168.0.226/opt/advancesbak/CB_DATA/

for each filename listed in "static.list"