CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [tiggers] ultrastats updating weekly: Edit Log



shest75
Novice

Oct 28, 2009, 11:08 AM


Views: 2997
Re: [tiggers] ultrastats updating weekly

Ok,
So don't use perl. Just use ftp command.

Try ftp -h you should see something like :

ftp -s:filename

In this filename you can send ftp command like

open 127.0.0.1 -> You should change it
shest -> the username
shest -> the password
cd /ftproot/test1 -> cd in the remote ftp directory
dir -> have an overview of files in the directory
lcd c:\temp -> "Local cd".. change it to what you want
get test1.txt -> do the get command
bye -> exit

So if you have multiple directory, just add in the script :

cd /first-src-dir
lcd /first-dest-dir
get first-logfile
cd /second-src-dir
lcd /second-dest-dir
get second-logfile

make some tests, but I hope it will help.
You just need to add it in the windows scheduler ( at ) and everything should just be fine.


I'm still wondering how log files are "rotated"...
Bye


(This post was edited by shest75 on Oct 28, 2009, 11:19 AM)


Edit Log:
Post edited by shest75 (Novice) on Oct 28, 2009, 11:10 AM
Post edited by shest75 (Novice) on Oct 28, 2009, 11:19 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives