I asked my brother who is much better in coding than me and he told me that the script should look like this
Quote:
#!/bin/bash
#this script copies the access log file from the squid server copies it to 10.200.2.93 runs the sarg utility and the resulted report is sent back to server at /media/usbdisk/sarg_logs
locate=$(ssh root@10.200.2.28 find /media/usbdisk/squid/access/ -mtime +8)
echo $locate
#sarg -l $file
|
He created a similiar script to yours, so if you need help in doing the same, he told me he can give you a hand