I'm thinking how to control and execute command to control my machine like update them,
scenario is creating a cron in machine 1 machine 2 machine 3 which download .txt file from core machine,
this txt file contain update function like:
kernel=1
yum=0
ssl=1
and store this file in /etc/update.txt
then this cron check if in update.txt file, kernel=1 then execute yum update kernel , if yum=1 then execute yum update and if ssl=0 do nothing,
is it possible (or any replacement idea)
how can i write check part, (if kernel = 1 then ... )
Exactly. Change /etc/update.txt and run above; it will do what is requested. It reads the file line by line and executes a function or script if value equals 1. Above is a skeleton to show how it's doable; you'll need to define the actions yourself.