public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Problem running runmqsc from cron
@ 2004-05-21 15:11 Harig, Mark
  0 siblings, 0 replies; 3+ messages in thread
From: Harig, Mark @ 2004-05-21 15:11 UTC (permalink / raw)
  To: Mike Kenny - BCX - Mngd Services, cygwin



> -----Original Message-----
> From: Mike Kenny (email address deleted)
> Sent: Friday, May 21, 2004 5:15 AM
> To: cygwin
> Subject: Problem running runmqsc from cron
>
> 
> I have written a number of scripts to monitor queue depth and 
> channel status on my MQ server. These work fine from the 
> command line, but when I try to execute them from cron the 
> sciripts are executed, but the runmqsc command reports that 
> it can't connect to the queue manager. Has anybody come 
> across this or similar problems? If so how were they 
> resolved? (I hace searched the archives, but can find no 
> reference to this type of problem)
> 

You might try examining your environment variables:

  * * * * * /usr/bin/env > /tmp/env.txt

The environment variable settings that are set by
default within cron is a limited set.  For more
information, see "man 5 crontab".

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Problem running runmqsc from cron
@ 2004-05-24  9:54 Mike Kenny - BCX - Mngd Services
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Kenny - BCX - Mngd Services @ 2004-05-24  9:54 UTC (permalink / raw)
  To: Harig, Mark, cygwin

> > I have written a number of scripts to monitor queue depth and 
> > channel status on my MQ server. These work fine from the 
> > command line, but when I try to execute them from cron the 
> > sciripts are executed, but the runmqsc command reports that 
> > it can't connect to the queue manager. Has anybody come 
> > across this or similar problems? If so how were they 
> > resolved? (I hace searched the archives, but can find no 
> > reference to this type of problem)
> > 
> 
> You might try examining your environment variables:
> 
>   * * * * * /usr/bin/env > /tmp/env.txt
> 
> The environment variable settings that are set by
> default within cron is a limited set.  For more
> information, see "man 5 crontab".
> 

Thanks Mark. I had actuallly dumped my environment from within cron
and compared it. It seemed OK. I found an explanation of the problem
by googling. For those who may be interested, the issue is that cron has
to su to execute the jobs for each user. As cygwin is cannot use NT to
authenticate the user, any job that is going to be executed on behalf
of that user must not use any resource that will require authentication.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problem running runmqsc from cron
@ 2004-05-21 11:14 Mike Kenny - BCX - Mngd Services
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Kenny - BCX - Mngd Services @ 2004-05-21 11:14 UTC (permalink / raw)
  To: cygwin

I have written a number of scripts to monitor queue depth and channel status on my MQ server. These work fine from the command line, but when I try to execute them from cron the sciripts are executed, but the runmqsc command reports that it can't connect to the queue manager. Has anybody come across this or similar problems? If so how were they resolved? (I hace searched the archives, but can find no reference to this type of problem)

Thanks,

Mike

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-24  6:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-21 15:11 Problem running runmqsc from cron Harig, Mark
  -- strict thread matches above, loose matches on Subject: below --
2004-05-24  9:54 Mike Kenny - BCX - Mngd Services
2004-05-21 11:14 Mike Kenny - BCX - Mngd Services

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).