I am trying to automate ftp downloading process. Basically it is suppose to do the following tasks.
- Open ftp to some location using windows FTP CLI using username and password as parameters
- Go to certain directory e.g: cd [some directory name]
- Download or get file
- close ftp
Can someone create a sample diagram for me so that I can actually modify and execute it?
Also, please let me know how to execute it. When I try running it, all it does is open a portal and say “submit case1” submit case 2 and so forth.
Please help.
Thank you so much for your help.
I will show you how to do it (in a fashion) but it’s up to you to implement it… best way to learn
I’m assuming Windows, if you want ?nix, you’re on your own…
first create a batch file with the necessary commands in and make sure this works as you intend…
- Create a new diagram
- make Step1 a Service or Script task
- in the step details Connectors → Add
- Click on Script and select System Script → Next
- give it a name etc. → Next
- in interpreter type cmd
- in Execution parameter type /c
- in Write your script here type
path and command to your FTP batch file…for example
c:\mybatchfiles\ftp.bat
to test it, click test, click OK, and see the output of the execution.
try it with ipconfig and you will see the results on the screen straight away.
If you want the output of the operation click → Next and set the output variables as required.
The screens will appear if you are executing in the fashion of a human task, or using the portal to start it,
To remove the pool screen you can click on the pool - details Application Tab → Pageflow Tab and select Skip.
Once you have it operating in the background (not using the portal) all screens will then disappear,
Hope this helps
regards
Seán