[ale] Question about scripts

Chuck Payne terrorpup at gmail.com
Fri Jul 17 15:31:14 EDT 2009


Guys,

I need to copy a dir with a lot of files, and I want to make sure I
get them all, but I can't get my script to write to my log, any clues
how I can get to work? Also how I can get to dump to one line per
file?

#!/bin/sh
touch /var/log/copyfiles.log

dircopy="/vhosts/pictures/vikram"
dirremote="/media1"

while true ; do
echo "`cp -R $dircopy/*  $dirremote `" >> /var/log/copyfiles.log
done

Thanks

-- 
----------------------------------------
Old utilities do not die they just slowly fade away!
-----------------------------------------
OpenSUSE -- http://en.opensuse.org/User:Terrorpup
OpenSuSE Ambassador
OpenSuSE Member
Skype -- terrorpup
twitter -- terrorpup


More information about the Ale mailing list