Hello,

I am trying to generate through the use of crontab an output relative to a
time span covering the last day only. That implies that I should not only
specify the time for the program to be run (in my case every day at 23:59),
but that the report should cover only the last 24 hours.

>From the telnet prompt, the output of command `date +%y-%m-%d' is `00-03-02'
for the date of 2-mar-2000.

I have tryed to invoke Analog from inside cron filling out options +F (from)
and +T (to) with the date command above, but I do not know if that is
possible.

Check the line I have embedded into crontab:

59 23 * * *  /usr/local/bin/virtual /www/analog4.01/analog
+g/www/analog4.01/my_config_file.cfg +O- +a +F`date +%y-%m-%d`:0000
+T`%y-%m-%d`:2359

And the output error messages from Analog:

No job control in subshells.
No job control in subshells.
/www/analog4.01/analog: Warning C: Invalid FROM string :0000: ignoring it
  (For help on all errors and warnings, see docs/errors.html)
/www/analog4.01/analog: Warning C: Invalid TO string :2359: ignoring it

And then follows the report, covering *not only* the date of 02/mar/2000,
but all dates before that which are present in my log file.

Any ideas of how should be the right way to get the system date and input it
as a parameter to Analog???

TIA,
Paulo




------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to