Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]master #[/blue] md5sum lasagna.txt > checksum.md5
[blue]master #[/blue] scp lasagna.txt checksum.md5 slave:/tmp
lasagna.txt 100% |*****************************| 793 00:00
checksum.md5 100% |*****************************| 46 00:00
[blue]master #[/blue] ssh slave
[green]slave #[/green] cd /tmp
[green]slave #[/green] md5sum -c checksum.md5
lasagna.txt: OK
#!/bin/ksh
LOCALSIZE=$(ls -l localfilename | awk '{print $5}')
REMOTESIZE=$(
ftp -n remotehost << HERE | awk '$NF == "remotefilename" {print $5}'
user username password
dir remotefilename
HERE)
if [[ "$LOCALSIZE" -ne "$REMOTESIZE" ]]
then
echo "Remote file size $REMOTESIZE differs from local file size $LOCALSIZE"
fi
[gray]# SuSE :[/gray]
[blue]master #[/blue] uname -a
Linux master 2.4.19-4GB #1 Wed Sep 25 18:58:10 UTC 2002 i686 unknown
[blue]master #[/blue] ls -l lasagna.txt
-rw-r--r-- 1 master users 793 2005-04-26 11:49 lasagna.txt
[blue]master #[/blue] du -b lasagna.txt
[red]4096[/red] lasagna.txt
[gray]# Sorcerer :[/gray]
[green]slave #[/green] uname -a
Linux slave 2.6.11.12 #1 SMP Mon Sep 26 15:45:52 EEST 2005 i686 GNU/Linux
[green]slave #[/green] ls -l lasagna.txt
-rw-r--r-- 1 slave users 793 Aug 2 13:29 lasagna.txt
[green]slave #[/green] du -b lasagna.txt
793 lasagna.txt
feherke said:No, the filesystems does not differ. Both are ReiserFS.