Find the answer to your Linux question:
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......
  1. #1
    Just 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...

  2. #2
    Just Joined! hunter_thom's Avatar
    Join Date
    Apr 2010
    Posts
    89
    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'.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3
    will u pls share me that script...Thanks in advance...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...