running actexec in proxy mode to download remote file

Post here if you need help using Actiona
Post Reply
eureka
Posts: 204
Joined: 08 Mar 2016, 22:18

running actexec in proxy mode to download remote file

Post by eureka »

I am experimenting with downloads of pre-built .ascr scripts into a bootstrap.ascr in desktop (Ubuntu 16.04).

The idea is to hold a remote repository of *.ascr scripts in a server (initially just a localhost server for test purposes).

I can inspect the options (args) through the command

Code: Select all

man actexec 
which returns this information ..

Code: Select all

usage: actexec [parameters] filename
Parameters are:
 --code, -c        switch to code mode, may not be used with -s 
 --script, -s      switch to script mode, may not be used with -c 
 --nocodeqt, -Q    do not include the Qt library into the code 
 --portable, -p    starts in portable mode, storing the settings in the executable folder 
 --proxy-mode      sets the proxy mode, values are "none", "system" (default) or "custom" 
 --proxy-type      sets the custom proxy type, values are "http" or "socks" (default) 
 --proxy-host      sets the custom proxy host 
 --proxy-port      sets the custom proxy port 
 --proxy-user      sets the custom proxy user 
 --proxy-password  sets the custom proxy password 
 --version, -v     show the program version 
 --help, -h        show this help text 

also seen here ...

http://manpages.ubuntu.com/manpages/tr ... xec.1.html

...

But how do I compose the actexec command line using proxy args?

I have tried this example ...

Code: Select all

actexec --proxy-host=http://localhost/actions/xml/hello.ascr
Please provide some examples of accessing remote *.ascr files held in a server.

I can work around this by first downloading the *.ascr script using wget command in the bootstrap.ascr and then having another action to run the downloaded file locally. But I would like to understand all the actexec arguments with examples.

How do I draft the above test url to access hello.ascr?

...

Later edit ... I tried this syntax .. but return is "Unable to read input file"

Code: Select all

actexec --proxy-host="http://localhost/actions/xml/" hello.ascr
Unable to read input file
...

Code: Select all

actexec -v
Actiona Executer version 3.9.1, script version 1.1.0
User avatar
Jmgr
Admin
Posts: 1649
Joined: 07 Dec 2005, 15:45
Contact:

Re: running actexec in proxy mode to download remote file

Post by Jmgr »

A proxy in the context of Actiona is a server that allows you to access the Internet trough it, rather than connecting directly. It has nothing to do with downloading files. You can have a look at this Wikipedia page that explains what a SOCKS proxy is: https://en.wikipedia.org/wiki/SOCKS

The actexec program can only run local files, to execute a script you would have to download it (using wget for example) and then run it.
"My software never has bugs. It just develops random features."
Post Reply