Re: Scheduling Jobs - Last day of the month - HOWTO?



"Michael B. Johnson" wrote:

I would like to schedule a job on the last day of each month.

When I looked through the man pages for Cron, there did not appear
to be any obvious mechanism for specifying the *last day* of the
month.

Unfortunately, my environment is Cygwin, and the job to be
launched (executable) was written in Visual Basic 6. I have access
to "bash" via cygwin, as well as perl and awk.

I realize this may not be the ideal group in which to post this;
if you have no other suggestions that appear appropriate, then
please suggest a group where the question might /be/ more
appropriate. However, I would request indepth consideration be
given to my request before being sloughed off, as I don't have
access to any newsgroups specific to Cygwin, that are in English.

I see no problem with this group; Cygwin is intended to create a
Unix/Linux like environment, and does a pretty good job (although
it is slow, compared with such packages as DJGPP),

As such, you have access to many languages, including C, but not VB
under Cygwin. I suggest you stick with real languages, which VB is
not.

At any rate, it is easy in most languages to ascertain the present
month and day. Then all you need to do is calculate the last day
of the month from a small table, and allow for leap year in
February. You can probably even do this with a bash script.

--
Chuck F (cbfalconer@xxxxxxxxx) (cbfalconer@xxxxxxxxxxxxx)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE maineline address!

.



Relevant Pages

  • Re: Teach myself C++.
    ... GCC is, de facto, the standard implementation for several languages. ... Fortran, Java, and Ada, as well as libraries for these languages." ... You appear to be using Windows XP, so I would suggest Cygwin. ...
    (sci.crypt)
  • Re: BASH in Cygwin and *nix
    ... Hanna Lord wrote: ... > I have just tried to run a BASH script that was written on a Slackware 10 ... > additional to Cygwin or my scripts to make them Cygwin happy? ...
    (comp.os.linux.development.apps)
  • Re: BASH in Cygwin and *nix
    ... > Hanna Lord wrote: ... >> I have just tried to run a BASH script that was written on a Slackware ... >> additional to Cygwin or my scripts to make them Cygwin happy? ...
    (comp.os.linux.development.apps)
  • BASH in Cygwin and *nix
    ... I have just tried to run a BASH script that was written on a Slackware 10 ... additional to Cygwin or my scripts to make them Cygwin happy? ...
    (comp.os.linux.development.apps)