suppose I have a shell script.sh that I want to execute on Linux client.
Can you provide me with an action script to use in a task that downloads this file and executes it?
My main concern is what I need to do for a client to be able to download it from TEM Server. Should I put it in sha1 folder like here: http://support.bigfix.com/cgi-bin/kbdirect.pl?id=500 under the name of its sha1? And what path should I then give for a download command?
The instructions say to put all the script code directly in the fixlet/task with appendfile.
I thought about creating a separate file .sh or .sql , sending it and then only executing it from action script.
Actually at the moment I have several sql scripts to run on Oracle db. So I need to execute sth like this:
sqlplus userid/password@db -s @myscript1.sql
I thought I should send, or rather tell client to gather myscript1.sql from server first and then execute it. Is it good approach? If it is where should I put this sql on server and what command should be used to gather it?
There won’t be a good way to get the userid/pw to the agent securely. If you put it in the Fixlet, people can see it and if you make it a download, then other people can easily download it too.