I have been given the task of automating the FTP transfer of a couple of report files after they have been produced in Progress.
We are working on a Unix back end and I can FTP using the UNIX console quite easily.
However, I'm not sure how it would be possible to do this from within a Procedure?
I'm fairly new to Progress so I may be missing something obvious.
Any help is greatly appreciated.
Thank you
Oliver
I have found a solution.
I had a quick explore and found the UNIX function.
From there I have created a shell script that will transfer the files I need and then I run the shell script from the UNIX Progress Function.
Sorry for the multiple posts but this is part of the same issue so I thought I should keep it together.
I have a shell script file running my FTP and I can input paramteres for the file names.
Is there any way of using Progress variables as the input parametes in the UNIX shell?
Thanks again for the help!
Oliver
Maybe something like:
os-command(substitute("os-command ftp.sh &1 &2", Host, Port)).
With ftp.sh is:
#!/bin/bash
Host = $1
Port = $2
Edit: we use socket programming to directly interface with port 21 from the 4GL; but I guess this solution will suffice for your problem.
Message was edited by:
Simon de Kraa
Thank you.
In the end I used this...
os-command value("./ftpscript.sh " + file1 + " " + file2).
That worked a treat
Thanks!
it's also possible to do input-output through to an FTP client and control the FTP client from the ABL client.