[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[McIDAS #IFI-844551]: Using McIDAS scripts on the crontab

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [McIDAS #IFI-844551]: Using McIDAS scripts on the crontab
  • Date: Tue, 11 Jun 2013 08:29:51 -0600

Hi João,

re: running McIDAS commands from a script

> Things appear to be working well (by the way, I later noticed that mcbatch
> and mcrun were in my MCDATA folder).

Very good.

re:
> One problem that does exist is that logging has been compromised.
> Mcbatch.sh simply does not echo any output!

Question:

- the copy of mcbatch.sh that I include with Unidata McIDAS redirects
  all textual output (i.e., log messages) to the file specified
  in the MCLOG environment variable that is set in the script:

#
# Define MCLOG to be $MCDATA/mcbatch.log
#

MCLOG=$MCDATA/mcbatch.log

...

#
# Send all textual output to the log file
#

exec 2>$MCLOG 1>&2

Question:

- are you saying that the file $MCDATA/mcbatch.log does not
  exist?

- or are you saying that the file $MCDATA/mcbatch.log exists
  but does not have nay content?

re:
> Thanks anyways,

No worries.

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: IFI-844551
Department: Support McIDAS
Priority: Normal
Status: Closed