You can do one easy thing. Create a simple local table where the
records ID will be service name. the record will contain the fields
like start time, end time, and possible other fields like whether to
run every day or specific day etc.
Then you need a background program that will work on the top of this
table and will change the SERVICE.CONTROL field in TSA.SERVICE to
START/AUTO or STOP for the corresponding services.
This program can be another service with AUTO running or the
background process started as PHANTOM after the COB automatically or
any other. There are many ways how to do it.

On Feb 16, 1:32 pm, JOSE L MARTINEZ-AVIAL <[email protected]> wrote:
> Cron or crontab is a Unix standard utility to schedule jobs. For what I've
> seen Aix supports cron, but you will need to check the documentation.
> Basically you can setup a script like the following:
>
> cd ~myuser
> . /setEnvironment.sh
> echo "AVISA.SEC.WO.DEPOSITARY" | $JBCRELEASEDIR/bin/jsh
> exit
>
> and create the following line in the crontab list
> 00 08 * * * /path/to/the/script/myScript.sh
>
> This will execute the program AVISA.SEC.WO.DEPOSITARY at 8:00 AM every day.
> You will need to setup a script with all the environment variables
> needed(path, all Jbase variables, etc), since cron jobs run under the uses
> that created them, but .profile is not executed. Remember that you need to
> use a program, not a subroutine, in order to be executed from jbase shell.
>
> I hope it helps.
> Jose
>
> 2010/2/16 Talha Naushahi <[email protected]>
>
>
>
> > thnx jose n jim,
>
> > "It all depends on what you want."
> > I need a service to run daily at 8:00am and stops when the work is finish.
> > The service just checks a file in directory and uploads the data in t24.
>
> > "Do you want it to run every working day or calendar day?At a determined
> > time? "
> > every working day at 8:00am
>
> > "How long does it take?"
> > 5min
>
> > Do you need the process to run under a user logged in the system?
> > nop
>
> > Solution:
>
> > Thanks to avin who told me that we can specify the time in
> > TSA.WORKLOAD.PROFILE. I have tested my service (AUTO) and it starts
> > automatically at the time specified in  TSA.WORKLOAD.PROFILE but as the
> > service is set as AUTO in the TSA.SERVICE, it does not ends after running
> > once.
> > Attaching service on COB will not helpfull as the requirement is totally
> > different.
> > jose can you enlighten more about cron? i dont know how it works but it
> > seems to be helpfull.
>
> > regards,
> > Talha
>
> > On Mon, Feb 15, 2010 at 10:23 AM, JOSE L MARTINEZ-AVIAL 
> > <[email protected]>wrote:
>
> >> I agree with Jim, you should provide more info. A jdiag output will say
> >> everything, and takes about 15 seconds, including the Copy & Paste. There
> >> are no useful answers to incomplete questions.
>
> >> It all depends on what you want. Do you want it to run every working day
> >> or calendar day? At a determined time? How long does it take? Do you need
> >> the process to run under a user logged in the system? Depending on this, 
> >> you
> >> have a lot of options. You can use a cron for that (Seems the most
> >> appropriate thing to do, with the amount of information you provided. You
> >> can add it to the COB, in a separated job. Where I work we have a service
> >> that runs every day after the COB, maybe you should think of it. Of course,
> >> it can be a mix of those solutions. Maybe a cron that launches a service
> >> daily? That's not complicated to do.
>
> >> Explain exactly what you need, and provide enough information, and
> >> somebody will give you something to work with.
> >> Jose
>
> >> 2010/2/15 Jim Idle <[email protected]>
>
> >>   I did  not have the heart to reject your post for a fourth time, but
> >>> let me point out that you cannot have read the posting guidelines despite 
> >>> me
> >>> asking you 3 times. Specifically, if you had included the 
> >>> jdiag.out(instructions are in the posting guidelines), then apart from 
> >>> Oracle, we
> >>> would know all of the other information. As it is, we still do not know
> >>> much. What version of AIX? What version of Oracle? What type of program do
> >>> you want to run? Long running? Short running?
>
> >>> Still, there is now probably enough information for someone to answer
> >>> this.
>
> >>> Please guys! Read the posting guidelines!!!
>
> >>> Jim
>
> >>> *From:* [email protected] [mailto:[email protected]] *On
> >>> Behalf Of *Talha Naushahi
> >>> *Sent:* Sunday, February 14, 2010 10:12 PM
> >>> *To:* [email protected]
> >>> *Subject:* Fwd: T24:Service running automatically on particular time
>
> >>> Hi All,
>
> >>> R08.003
> >>> JBASE 5.13
> >>> AIX
> >>> ORACLE
>
> >>> I need a service to execute automatically on a particular time daily.
> >>> Is it possible to give the time in TSA.SERVICE or in any other
> >>> application??? and according to that time the service starts automatically
> >>> daily.
>
> >>> thnx
>
> >>> Talha
>
> >>> --
> >>> Please read the posting guidelines at:
> >>>http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> >>> IMPORTANT: Type T24: at the start of the subject line for questions
> >>> specific to Globus/T24
>
> >>> To post, send email to [email protected]
> >>> To unsubscribe, send email to [email protected]
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/jBASE?hl=en
>
> >>> --
> >>> Please read the posting guidelines at:
> >>>http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> >>> IMPORTANT: Type T24: at the start of the subject line for questions
> >>> specific to Globus/T24
>
> >>> To post, send email to [email protected]
> >>> To unsubscribe, send email to [email protected]
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/jBASE?hl=en
>
> >> --
> >> Please read the posting guidelines at:
> >>http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> >> IMPORTANT: Type T24: at the start of the subject line for questions
> >> specific to Globus/T24
>
> >> To post, send email to [email protected]
> >> To unsubscribe, send email to [email protected]
> >> For more options, visit this group at
> >>http://groups.google.com/group/jBASE?hl=en
>
> >  --
> > Please read the posting guidelines at:
> >http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > IMPORTANT: Type T24: at the start of the subject line for questions
> > specific to Globus/T24
>
> > To post, send email to [email protected]
> > To unsubscribe, send email to [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/jBASE?hl=en

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to