Automated updates

I have the following script (

yum update -y
fwconsole ma updateall
fwconsole r

I run this script every week after a snapshot of my VM is made, but doesn’t seem to work. When running this by hand, it does. This should work right? I’m hoping to automate my updates.

Is the fwconsole shortcut command available from the script’s permission levels? I’ve had to point to the actual location in the filesystem for some of my crons.

Not sure, but I will give that a try. Where is it located, a search shows these 3 results.


I believe /usr/sbin/fwconsole is the correct one.

1 Like

which fwconsole

will return the one that will run, cron runs in the /bin/sh environment, so

/bin/sh -c "which fwconsole"

would show what /bin/sh thinks , if it is not in the PATH of the running shell, then you need to use the fully qualified path with fwconsole (same with yum)

Thanks, I will give this a try.

Btw: the yum update command doesn’t need a complete path?

That depends on whether it is the path of your current shell

I’ll give the following a try then:

/usr/bin/yum update -y
/usr/sbin/fwconsole ma updateall
/usr/sbin/fwconsole r

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.