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:
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 ... )
Last edited by vbe; 05-16-2015 at 12:01 PM..
Reason: code tag - typos
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.
I have a physical machine , just use vmware tools migrated data to virtual machine .
how can I check these two servers - old and new server , the data are the same , all files are copy to new server ?
thanks (2 Replies)
I have IBM Z-Linux machine as well as RedHat Linux.
Where do I see that the particular machine is z-Linux?
below output from zlinux.
$ uname -a
Linux xxxxxxxHostname 2.6.18-406.el5 #1 SMP Fri May 1 10:42:26 EDT 2015 s390x s390x s390x GNU/Linux
below output from redhat.
$ uname -a... (3 Replies)
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (15 Replies)
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (1 Reply)
Hi,
On a unix/linux server, how do I check if Autosys or Control-M (scheduler) is running? are there unique processes for these applications that I could do
ps -ef | grep ???
thanks,
Jason (11 Replies)
I am haveing one script haveing one issue with this could any one can reply soon it is very urgent.
:p
if ssh hcp_ftp@$1 'ls '$2/stop.txt' 1>&2 2>/dev/null'; then exit 1;
else
scp -p hcp_ftp@$1:$2/VAT*.dat $3 <<EOF
EOF
cd $3
pwd
echo 'About to find file'
SOURCE_FILE=$(ls -rt VAT*.dat|tail... (2 Replies)
I'm in a fustrating situation where I am repeatidly checking code, editing,
synchronizing, finding something is broke, reverting all my changes and starting over. This if often easier than trying to merge my changes with someone who has beat me to the checkin.
Is there a way I can mitigate... (5 Replies)
Hi All,
I want to check memory details and other hardware details of my SCO machine. can someone please share the command to do that?
Thanks,
Am (2 Replies)
Hi All,
I am new to shell scripting.
Can someone let me know, how to check whether the user exists in the remote system?
I am building a new unix box and before I proceed installing the appliation , I want to check whether the required users are created in the system .
how to do this ?... (1 Reply)