You can use
Code:
#!/bin/ksh
echo -n 'Stopping digital processes...'
/usr/local/xgate.ment/xgate.ment stop
/usr/local/xgate.liver/xgate.liver stop
echo stopped
echo -n 'Starting digital processes...'
/usr/local/xgate.ment/xgate.ment start
/usr/local/xgate.liver/xgate.liver start
echo stopped
point xgate
If the programs produce output You may want to do something like
/usr/local/xgate.ment/xgate.ment stop &> error.log
if You are sure that it will stop and output isn't interesting or read return value and act upon, such as
/usr/local/xgate.ment/xgate.ment stop &> error.log
if [ $? -eq 0 ] ; then echo stopped; else echo Something went wrong, read error.log;fi
or something like that?
/Lakris