Easiest way to implement a black hole (automatically move)?

Advertisement

tiwas
Joined:
Posts:
10

Easiest way to implement a black hole (automatically move)?

Hi guys,

I hope this hasn't been answered too many times before. I've tried finding a good solution but the ones I found didn't look optimal - and the ones that looked optimal were using the .net assembly, which I have no idea how to do myself ;)

So - does anyone know how to do this simple task?
1. When a file or directory is copied/moved into the black hole, transfer it to another host via ftp
2. If the ftp transfer is successful, delete local file
3. (optional) If there's an error, send email.

Help would be awesome! :)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Easiest way to implement a black hole (automatically move)?

I suppose you mean a local "back hole", right?
You can setup a frequent scheduled task (batch) that tests an existence of a file in the directory. If it finds any, it starts a WinSCP upload script. Should be easy with resources you find on this site.
Start here: https://winscp.net/eng/docs/guide_schedule

Reply with quote

Advertisement

You can post new topics in this forum