topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:36 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: SOLVED: SFTP new file with HotFolder  (Read 7040 times)

carbodykits

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
SOLVED: SFTP new file with HotFolder
« on: March 02, 2011, 02:32 PM »
Tried searching but couldn't find this:

1. Script monitors /HotFolder for new files.
2. If new file is found, copies file to new /Directory over SFTP

What do you think?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #1 on: March 02, 2011, 02:40 PM »
Only new?  Not modified?  Also, 'new' from the time the script is launched, right?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #2 on: March 02, 2011, 02:47 PM »
there are some good tools to do this aren't there? its a very useful thing but i think it already exists.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #3 on: March 02, 2011, 02:53 PM »

carbodykits

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #4 on: March 02, 2011, 08:02 PM »
Yes, new. For example,

1. I take a picture with digital camera.
2. New Picture.jpg is added to /Directory1
3. Script monitors /Directory and SFTP transfers a copy to /Directory2 (I need SFTP into my IPAD).

I will look at WinSCP tonight. Thanks for the help!

carbodykits

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 10
    • View Profile
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #5 on: March 03, 2011, 07:51 PM »
Thanks skwire!

Works beautifully!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: SFTP new file with HotFolder
« Reply #6 on: March 03, 2011, 11:44 PM »
Wonderful.   :)  I'll mark this one as solved.