modify smb-session.sh to use smbclient instead of mount point
This commit is contained in:
@@ -7,11 +7,12 @@ elif [ $i -gt 29490 ]; then echo 'test_file_1G'
|
|||||||
else echo 'test_file_500M';
|
else echo 'test_file_500M';
|
||||||
fi)
|
fi)
|
||||||
|
|
||||||
|
cd ~/Documents/smb
|
||||||
|
|
||||||
if pgrep -f test_file >/dev/null
|
if pgrep -f test_file >/dev/null
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
cp /media/smb/$file /home/pi/Documents/smb/all_files_$HOSTNAME.zip
|
smbclient //192.168.198.2/share -c "get $file" -A ~/.credentials
|
||||||
cp /home/pi/Documents/smb/all_files_$HOSTNAME.zip /media/smb/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user