RE: xctl problem on script
Posted in 2001
Topics: Server Administration
Your script needs to export ONCONFIG and INFORMIXDIR. If you also set up
PATH you wouldn't have to qualify xctl and onstat.
cheers
j.
> -----Original Message-----
> From: mazafar4@my-deja.com [mailto:mazafar4@my-deja.com]
> Sent: Monday, January 08, 2001 9:48 AM
> To: informix-list@iiug.org
> Subject: xctl problem on script
>
>
> I have a script which will run across the co-servers with the informix
> xctl command. The script is running fine at the command prompt; but it
> fails if i run same when I put it on the crontab.
> Script:
> allusers=`/usr/informix/bin/xctl /usr/informix/bin/onstat -u | grep
> informix | wc -l | awk ' { print $1 }'`
> echo $allusers
>
> Will anyone please help me out. I tried even exporting the
> xctl command
> also; but failed.
>
> Thanks
>
>
> Sent via Deja.com
> http://www.deja.com/
>
I have exported the onconfig also. Will u correct me:
INFORMIXDIR=/usr/informix; export INFORMIXDIR
ONCONFIG=/usr/informix/etc/onconfig; export ONCONFIG
xctl onstat -u
This is giving the error:
shared memory not initialized for INFORMIXSERVER '#.1'
Thanks
In article <93d1rf$ovj$1@news.xmission.com>,
"Parker, Jack" <JParker@engage.com> wrote:
>
>
> Your script needs to export ONCONFIG and INFORMIXDIR. If you also
set up
> PATH you wouldn't have to qualify xctl and onstat.
>
> cheers
> j.
>
> > -----Original Message-----
> > From: mazafar4@my-deja.com [mailto:mazafar4@my-deja.com]
> > Sent: Monday, January 08, 2001 9:48 AM
> > To: informix-list@iiug.org
> > Subject: xctl problem on script
> >
> >
> > I have a script which will run across the co-servers with the
informix
> > xctl command. The script is running fine at the command prompt; but
it
> > fails if i run same when I put it on the crontab.
> > Script:
> > allusers=`/usr/informix/bin/xctl /usr/informix/bin/onstat -u | grep
> > informix | wc -l | awk ' { print $1 }'`
> > echo $allusers
> >
> > Will anyone please help me out. I tried even exporting the
> > xctl command
> > also; but failed.
> >
> > Thanks
> >
> >
> > Sent via Deja.com
> > http://www.deja.com/
> >
>
Sent via Deja.com
http://www.deja.com/
Thanks to William & Parker,
I got the result after exporting the onconfig.
Thanks once again.
In article <93d4n1$3pa$1@nnrp1.deja.com>,
mazafar4@my-deja.com wrote:
> I have exported the onconfig also. Will u correct me:
> INFORMIXDIR=/usr/informix; export INFORMIXDIR
> ONCONFIG=/usr/informix/etc/onconfig; export ONCONFIG>
> xctl onstat -u
>
> This is giving the error:
> shared memory not initialized for INFORMIXSERVER '#.1'
>
> Thanks
>
> In article <93d1rf$ovj$1@news.xmission.com>,
> "Parker, Jack" <JParker@engage.com> wrote:
> >
> >
> > Your script needs to export ONCONFIG and INFORMIXDIR. If you also
> set up
> > PATH you wouldn't have to qualify xctl and onstat.
> >
> > cheers
> > j.
> >
> > > -----Original Message-----
> > > From: mazafar4@my-deja.com [mailto:mazafar4@my-deja.com]
> > > Sent: Monday, January 08, 2001 9:48 AM
> > > To: informix-list@iiug.org
> > > Subject: xctl problem on script
> > >
> > >
> > > I have a script which will run across the co-servers with the
> informix
> > > xctl command. The script is running fine at the command prompt;
but
> it
> > > fails if i run same when I put it on the crontab.
> > > Script:
> > > allusers=`/usr/informix/bin/xctl /usr/informix/bin/onstat -u |
grep
> > > informix | wc -l | awk ' { print $1 }'`
> > > echo $allusers
> > >
> > > Will anyone please help me out. I tried even exporting the
> > > xctl command
> > > also; but failed.
> > >
> > > Thanks
> > >
> > >
> > > Sent via Deja.com
> > > http://www.deja.com/
> > >
> >
>
> Sent via Deja.com
> http://www.deja.com/
>
Sent via Deja.com
http://www.deja.com/