...
Code Block |
---|
-- SFTP Example -- START --- local fileName = 'filterSFTPData.hl7' local sftpConfigs = configs.sftpConfigs local SftpConn = net.sftp.init{server=sftpConfigs.host, username=sftpConfigs.username, password=sftpConfigs.password} -- PustPush file to Remote SFTP local isSuccess = SftpConn:put{remote_path=fileName, data=Data, overwrite=true} trace(isSuccess) -- Read file from Remote SFTP local fileData = SftpConn:get{remote_path=fileName} trace(fileData) |
...