in reply to compress logs based on date and copy to local windows machine

Are the logs in a shared directory? In that case, you can treat it as a network drive and deal with it as if it was a local file.

You can also use AT to schedule zipping the file from the command line. How you afterwards fetch it over the network depends on what means you have available.

  • Comment on Re: compress logs based on date and copy to local windows machine

Replies are listed 'Best First'.
Re^2: compress logs based on date and copy to local windows machine
by Anonymous Monk on Apr 03, 2007 at 12:01 UTC
    Hi Bart Monk The Logs are not in shared directory. Its from a log server from which we have to push to another server.both running windows.

      So....share the directories? Other wise you'll have to setup some other transport, email attachments, ftp...


      ___________
      Eric Hodges
      Then click Start->run, enter \\remote_server\C$, hit return, answer the username/password dialog; open the Log folder in the explorer, right-click->copy, go to your local machine, right-click->paste, zip, copy back. What else?

      Ah, there's Remote Desktop also, which allows you to forward a local directory to the remote server.

      Or install an ssh server on the remote boxes, and do that with pscp.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
        Ah what a reply , i want to do it automatically buddy