Set paramater value over shell script in action script

Hello

Is it possible to set value of a parameter over wait command? I have a shell script which output I want to set up of the parameter “X”. Is it possible or I have to try find other solution?

Example: parameter “X”="{wait bash my-script.sh}"

I don’t know rewrite function of the shell script to action script so I tried this one but without success :frowning

Thank you

1 Like

I don’t have a linux machine to test at the moment but the general method would be something like

parameter "outfile"="/tmp/output.log"

wait /bin/bash -c /path/to/myscript.sh > {parameter "outfile"}

1 Like

It looks like you are trying to use a parameter as an actionscript command and thats something you can’t do.

You can have actionscript command lines do relevance substitution on them but each command script line needs to start with a command itself.

Thanks for answers, Jason Walker inspirated me with solution of this problem. I wrote output from command to a text file and after that I set 'parameter “X”="{lines of file “test.txt”}".

Again, thanks a lot