How to use OW3 to scp or ftp a file to a remote server
doug at artsman.com
Tue Jun 14 22:43:16 UTC 2022
there is an example in the ‘Samples’ in the HUB in your omnis developer copy called ‘FTP OW3 Worker Object’
It looks to have a lot of fill in the blanks to let you ftp/sftp from one location to another. I don’t know about SCP specifically. I do know that omnis accomplishes all of it using CURL.
anyway, I’ve used the HTTP OW3 Worker Object example to trace though and take working code from it to add support to background downloads for our update installers. it downloads a complete runtime installer for Theatre Manager into a client directory …. its very nice.
it goes along with the shell script I sent you moments ago. we download the zip and then use ditto to expand it, then run it via launch program
I know thats not what you asked .. but its is a great example how the HTTP worker can get updates onto a local machine from a server and run them.
in your case, the FTP worker should be able to move files from you to an FTP server
Arts Management Systems Ltd.
mailto:doug at artsman.com
Phone (403) 650-1978
> On Jun 14, 2022, at 10:21 AM, Terence Young <terry.young at journeymhc.org> wrote:
> Does anyone know how to use OW3 to scp or sftp a file to another server from within Omnis. sample code appreciated.
> Terence J. Young, DC
> System Administrator
> (608) 280-2679
> If you received this e-mail in error, please notify the sender, delete the e-mail, and do not use, disclose or store the information it contains. This e-mail and any attachments may contain confidential information, including records protected by WI Mental Health 51.30 and/or AODA federal confidentiality rules (42 CFR Part 2) - both prohibit you from making any further disclosure of this information unless further disclosure is expressly permitted by the written consent of the person to whom it pertains or as otherwise permitted by 51.30 or 42 CFR Part 2. A general authorization for the release of medical or other information is NOT sufficient for this purpose. Federal rules restrict any use of this information to criminally investigate or prosecute any alcohol or drug abuse client.
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en