[ale] Question about scripts
Robert L. Harris
robert.l.harris at gmail.com
Fri Jul 17 15:37:30 EDT 2009
rsync -av $dircopy/ $dirremote/ >> /var/log/copyfiles.log
Try that one.
On 7/17/09 1:31 PM, Chuck Payne wrote:
> 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
>
>
--
:wq!
====================================================================
Robert L. Harris | GPG Key ID: E344DA3B
@ x-hkp://pgp.mit.edu
DISCLAIMER:
These are MY OPINIONS With Dreams To Be A King,
ALONE. I speak for First One Should Be A Man
no-one else. - Manowar
More information about the Ale
mailing list