Redirecting stdout of actions to an AIX file

Hello Everyone, I checked most of the post on this subject but as they are pretty old (2012) I am wondering if BES has move a bit forward during past years

We are trying to create and action that:
Gets the user input (s)
if the user input is wrong or incorrect to output to a file in the AIX server (AIX)
if the input is correct
download the shell script and run it with then arguments from the user input
the shell script will redirect output to the same file in the AIX temp directory
finish…

Now the redirection of the output from inside the shell script no problem…
but I can not get the redirection to work from outside the shell script…

is BES still unable to do something like…
wait /usr/bin/sh -c “/usr/bin/echo {parameter “commandtorun” of action as string} is good” >> “/tmp/Bigfixoutput.log”
(I tried different variants of the shell above)

or has something change in the past years?

thanks again for the help

Hi,

You will need to enclose the whole command into a single string in order for it to be process-able.
You may want to try

wait /usr/bin/sh -c “/usr/bin/echo “{parameter “commandtorun” of action as string}” is good >> “/tmp/Bigfixoutput.log””

2 Likes

Fantastic xinqu1, that did the trick, thank you very much!!