I need to use Linux "set" command in Chef recipe, I tried it using "execute" resource, in-order to set positional parameters on the node server. It shows no error, after running the convergence 'chef-client'. But when I check it on the node, to echo out the value for the position variable (Ex: "echo $2"), there is no value displayed. How can I resolve it, is they any other process or I'm getting it wrong? Below are the exact lines in the recipe
execute "temp_password" do
command "set `cat temppasswd.txt`"
end