ADSM-L

Re: ADSM - Scheduler

1996-11-07 19:39:25
Subject: Re: ADSM - Scheduler
From: Alan Hamilton <alanh AT PRIMENET DOT COM>
Date: Thu, 7 Nov 1996 17:39:25 -0700
Werner Thoeni[SMTP:Werner.Thoeni AT VERW04.UKLIBK.AC DOT AT] wrote:
>Executing scheduled command now.
>11/04/96   12:17:14
>Executing Operating System command or script:
>   /usr/local/bin/test_adsm.sh
>11/04/96   12:17:14 Finished command.  Return code is:
>   9
>11/04/96   12:17:14 Scheduled event 'M086_CMD_TESTNODE2_MON1200'
>completed succe
>ssfully.
>11/04/96   12:17:14 Sending results for scheduled event
>'M086_CMD_TESTNODE2_MON1
>200'.

>The script /usr/local/bin/test_adsm.sh does the following:
>
>LOG=/usr/local/log/test_adsm.log
>
>echo `date` >$LOG
>
>exit 0

This may be the same as a problem I had.  The scheduler runs as root, and
AIX imposes restrictions on running scripts as root.  I don't know the
syntax for ksh/sh offhand, but to get a csh script to run you need

#!/bin/csh -b

at the top.  The -b flag is required.  It indicates a "break" in option
processing; everything after it is interpreted as an argument, rather than
a csh option flag.  I *think* the option for ksh is -b as well, but I'm not
sure.  Try

#!/bin/ksh -b

      /
  /  *  /  Alan Hamilton
 *     *   alanh AT primenet DOT com
<Prev in Thread] Current Thread [Next in Thread>