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';
|
||||
fi)
|
||||
|
||||
cd ~/Documents/smb
|
||||
|
||||
if pgrep -f test_file >/dev/null
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
cp /media/smb/$file /home/pi/Documents/smb/all_files_$HOSTNAME.zip
|
||||
cp /home/pi/Documents/smb/all_files_$HOSTNAME.zip /media/smb/
|
||||
smbclient //192.168.198.2/share -c "get $file" -A ~/.credentials
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user