I want the file “myfile.tar.gz” to be hosted on the Bigfix server it self so every server that is connected to Bigfix will be able to d/l it fromthe server.
How can I first d/l the file to the client server and then run my bash script?
but this seems to work when the action script type is set to: “Bigfix action script” and I am choosing “sh” as action script type to run my bash commands.
My approach would be to change the action to the ActionScript type then either download the tar file and a version of the script you want to run then call the downloaded copy of the script, or download the tar then use appendfileor createfile to dynamically create the script on the fly then execute it.
Take a look at the client or relay install fixlets in the BES Support site for examples of using ActionScript to download and create/execute a script (these use appendfileto create a script on the fly)
Thats as simple as it goes. Yet, the file seems to not be in /tmp at the end and I don’t see it in the __Download dir also. unless it sould be delete from there imediatlly….
This is easier than pathing to the “expected” folder via an OS level method as the folder may vary depending on fixlet site or operator (NMO vs MO)
Also, though I’m sure you are aware, downloads via the loopback address will only work on the root server so downloads will fail on any other endpoints
Just managed to d/l the file and copy it using the action scripts commands. After that I used the /bin/bash -c “command” to run the other command and it seems to work.
Thanks a lot for your replay. I appreciate it very much.