Results 1 to 3 of 3
Hi.. pls help me to write a script to copy file located at /var/log/squidGuard.log to our log server located at another location at 12 am everyday......
- 06-29-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
Script Writting
Hi.. pls help me to write a script to copy file located at /var/log/squidGuard.log to our log server located at another location at 12 am everyday...
- 06-29-2010 #2
Is SSH enabled on both machines? If so, I would suggest using SCP.
This would be very simple. This would be a 2 line script (one for the shebang). Then you put it into cron.daily (if that runs at an acceptable time). Otherwise, you can setup your own cron configuration in /etc/crontab or a user cron configuration using the command 'crontab -e'.
- 07-01-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 3
will u pls share me that script...Thanks in advance...


Reply With Quote