Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am using Putty SFTP to automate l

Status
Not open for further replies.

KeyserSoze1877

Programmer
Sep 6, 2001
95
US
I am using Putty SFTP to automate log tranfers on Windows.

I need a script to run with the transfer to get today's logs...

For Example: EVENTLOG0507.log

I would need to tranfer only today's file ending in MMDD.

I have a batch to initiate the sftp connection and a script to automate put commands, but how do I make the put grab the right file? I am assuming my vbs will replace my bacth and run the sftp.exe but how?


 
We managed to get ours to work by having the current day's log 'put' and then move the log to an archive folder. That way the only file in your source folder is the current day file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top