[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Question about scripts
- Subject: [ale] Question about scripts
- From: robert.l.harris at gmail.com (Robert L. Harris)
- Date: Fri, 17 Jul 2009 13:37:30 -0600
- In-reply-to: <[email protected]>
- References: <[email protected]>
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