When I try to run "yum -y update" from a Bash script it doesn't work.
Here is what the script looks like.
#!/usr/bin/ echo "--> Updating CentOS System" yum -y update
I run the script with this command.
I get the following output.
Loaded plugins: fastestmirror, refresh-packagekit, security . Please use /usr/bin/yum --help.
CentOS 6 FINAL Installed via text prompts. I login as root from the text prompt then startx to get into the gui desktop.
But when I run the same command directly in the terminal it works?
I've googled around but not sure if I'm googling the correct terms.
Thanks for your help.