Larry,

I have to syncronize some files from a 
NetWare server volume to a share on 
a Windows workstation every morning, 
so maybe you can hack part of this to 
work for you:

>>>>>START>>>>>
#!/bin/bash

# rsync-crystal-reports

ECHO=/bin/echo
NCPMOUNT=/usr/bin/ncpmount
NCPUMOUNT=/usr/bin/ncpumount
MOUNT=/bin/mount
UMOUNT=/bin/umount
RSYNC=/usr/bin/rsync

USER=linuxuser

NSERVER=nwserver
NDNS=nwserver.workplace.com
NUSER=nwuser.users.workplace
NPASS=nwpassword
NVOL=nwvol
NMPOINT=/mnt/nwserver

MFS=smbfs
MUSER=msuser
MPASS=mspassword
MOPTS=username=$MUSER,password=$MPASS,uid=$USER,gid=$USER
MSHARE=//msserver/msshare
MMPOINT=/mnt/msserver

RSRC=/mnt/nwserver/HOME/Crystal\ Reports/
RDST=/mnt/msserver/

$ECHO "=== $0 start ==="

$ECHO Mounting NetWare volume
$NCPMOUNT -S $NSERVER -A $NDNS -U $NUSER -P $NPASS -u $USER -g $USER -V
$NVOL $NMPOINT
NRV=$?
if [ "$NRV" != "0" ]; then
	$ECHO "* NetWare mount failure -- exit status $NRV"
	$ECHO "    Servername: $NSERVER"
	$ECHO "    Server DNS: $NDNS"
	$ECHO "    Username: $NUSER"
	$ECHO "    Volume: $NVOL"
	$ECHO "    Mount Point: $NMPOINT"
	exit $NRV
fi
$ECHO Mounting Windows share
$MOUNT -t $MFS -o $MOPTS $MSHARE $MMPOINT
MRV=$?
if [ "$MRV" != "0" ]; then
	$ECHO "* Windows mount failure -- exit status $MRV"
	$ECHO "    Sharename: $MSHARE"
	$ECHO "    Username: $MUSER"
	$ECHO "    UNIX Username: $USER"
	$ECHO "    Mount Point: $MMPOINT"
	exit $MRV
fi

$ECHO Performing rsync of files
$ECHO "==============================================================="
$RSYNC -rtv "$RSRC" "$RDST"
$ECHO "==============================================================="

$ECHO Unmounting NetWare volume
$NCPUMOUNT $NMPOINT
$ECHO Unmounting Windows share
$UMOUNT $MMPOINT

$ECHO "=== $0 stop ==="
<<<<<END<<<<<

Good luck,

Troy

>>> larry.pint at ntuminc.com 08/16/04 04:07PM >>>
Thanks, Brian.

I'm actually trying to go the other way.  I have the Windows PC's 
reading and writing files on the Linux server.

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list