Re: What is the different between cron executing and shell execution?
On Sun, 30 Jan 2005, h.wulff wrote:
> if ( ! $SAV_INSTALL_PRG $SAV_INSTALL_OPTIONS 1>/dev/null )
if [ ! "$SAV_INSTALL_PRG $SAV_INSTALL_OPTIONS" 1>/dev/null ]
> echo "Unable to install the new engine"
> echo "Command: \"$SAV_INSTALL_PRG $SAV_INSTALL_OPTIONS\""
> LOG2SYSLOG "ERROR: Unable to install the new engine."
> cd $TMP
ya should check if cd passed
if [ $? != 0 ];
echo "barf on $TMP"
check for filenames
if [ -f "$TMP/$TMP_SAV_INSTALL" ];
whacky -rf $TMP/$TMP_SAV_INSTALL
> /bin/rm -rf $TMP/$TMP_SAV_INSTALL
> /bin/rm -f $IDE_DIR/*.ide
i'd make damm sure that your $TMP variables is properly defined before
doing your "remote managing real fast"
> LOG2SYSLOG "Successfully installed new sophos antivirus engine"
> All variables are defined in the header of this script.
> and LOG2SYSLOG looks like this:
> MY_NAME=`basename $0`
> MY_PID=`pidof -x $MY_NAME`
> logger -t "$MY_NAME[$MY_PID]" $1