Ask Your Question
0

SFTP Client Post Processing Archive

asked 2018-10-28 23:32:57 -0500

anonymous user

Anonymous

Is there any possible way to Archive file from SFTP after finishing reading the file like Directory ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-10-29 11:27:41 -0500

iamontheinet gravatar image

Hi!

Look into generating events by enabling "Produce Events" on SFTP/FTP Origin. Then you can use Script Executor with its Preconditions set to ${record:eventType() == 'finished-file'} and provide your script to archive the processed file.

Hope this helps.

Cheers, Dash

edit flag offensive delete link more
0

answered 2019-03-18 06:36:11 -0500

Tutgirl gravatar image

Shell Executor with below commands can succesfully archive the file in FTP servers.

ftp -v -n $HOST <<eof quote="" user="" $user="" quote="" pass="" $passwd="" rename="" $sourcefile="" $archivefile="" bye="" eof<="" p="">

edit flag offensive delete link more

Comments

ftp -v -n $HOST <<eof quote="" user="" $user="" quote="" pass="" $passwd="" rename="" $sourcefile="" $archivefile="" bye="" eof<="" p="">

Tutgirl gravatar imageTutgirl ( 2019-03-18 06:37:17 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-28 23:32:57 -0500

Seen: 221 times

Last updated: Mar 18