Problem with SFTP

Discuss RoboTask here
Post Reply
dj.funny
Posts: 6
Joined: Thu Dec 01, 2016 5:36 pm

Problem with SFTP

Post by dj.funny »

I'll have a problem with SFTP,

When I download /out/factuuradressen/25112016120320_producten.log

There is no problem!!

But because I don't know the filename I'll do it with a loop.

I've used the following formats on the item "Remote Folder and File Mask (e.g. download/*.zip):

/out/factuuradressen/
/out/factuuradressen
/out/factuuradressen/*.log
/out/factuuradressen/*.*
/out/factuuradressen/25112016120320_producten.log

But never there is a file found??? So he goes direct to the "End Loop" :(
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Problem with SFTP

Post by Oleg »

Hm-m...
I tested this, it works

This example retrieves filenames test/*.txt

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|799993286
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task161"
Hide=INTEGER|0
ID=INTEGER|2025316178
LogOnAsUser=INTEGER|1
Name=STRING|"Test sFTP Loop"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER

[Actions\Action1]
ActionID=STRING|"A_SFTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"SFTP Open (username@192.168.44.129)"
Params=FOLDER

[Actions\Action1\Params]
host=STRING|"192.168.44.129"
password=STRING|"8300183858849008361683093"
passwordmode=STRING|"0"
port=STRING|"22"
username=STRING|"username"

[Actions\Action2]
ActionID=STRING|"A_SFTP_DIR"
Enabled=INTEGER|-1
Name=STRING|"SFTP File loop"
Params=FOLDER

[Actions\Action2\Params]
createmode=STRING|"1"
date1=STRING|"18991230"
date2=STRING|"18991230"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
filenameonly=STRING|"0"
folder=STRING|"test/*.txt"
kind=STRING|"0"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
sizesave=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subfolders=STRING|"1"
timesave=STRING|"0"
varname=STRING|"FILE"

[Actions\Action3]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action3\Params]
message=STRING|"{file}"
type=STRING|"3"

[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
Oleg Yershov
Post Reply