03-25-2008
Auto Scheduling
Hi guys,
I have a problem that can be solved using a scheduler, but unfortunately I am not supposed to (ask the client).
PROBLEM:
I have a script that once kicked off manually, will automatically kick off itself after every 15 minutes interval. Please share the code that would put this script to sleep for fifteen minutes, and then kick it off again from the beginning.
Thanks,
-CB
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I would like to schedule a command at a specific time on my system.I know that theres a file named at.alow and at.deny in my system. I can find the at.deny file but not an at.allow file .
Is there anyway out or i have to go and talk to the system administrator itself , or any other way of... (1 Reply)
Discussion started by: prashantuc
1 Replies
2. UNIX for Dummies Questions & Answers
i have tried to schedule my process at a certain time using the at command :
the error says bad time specification
can somebody help me
i used at 2300 job
thanks (2 Replies)
Discussion started by: prashantuc
2 Replies
3. Shell Programming and Scripting
Hello,
I want to know about job scheduling utilities available in unix. It should not be responsible just for starting the job like in case of cron but should also be able to handle the execution of jobs.
Regards,
Ritesh (1 Reply)
Discussion started by: turlapaty
1 Replies
4. Programming
hi there i m having a confusion here with the looping in this example below. can someone help me out!?
#include<stdio.h>
main()
{
char it = 'a';
char stop = 'z';
int x,ret;
for(; it<'f';it++)
{
// for(x=0; x<32000;x++)
... (4 Replies)
Discussion started by: a25khan
4 Replies
5. Shell Programming and Scripting
Hi all,
My OS is Solaris 10. I want to schedule a job which i need to run between morining 6 to eve 6 once for every 2 hours. This is what i did.
0 6-18 * * 1-5 /monitor.sh
It runs for every hour how to make it for every two hours ......
Thanks,
Firestar. (1 Reply)
Discussion started by: firestar
1 Replies
6. Shell Programming and Scripting
Hi,
i have 10 sh scripts. All are running in parallel using cron tab and each script gives "success" flag files once the execution is completed.
and, now i have 11th script which should look for "success" flag from those 10 sh scripts. once all the 10 flag files found, 11 th script has to do... (9 Replies)
Discussion started by: nago123
9 Replies
7. Shell Programming and Scripting
I want to schedule a job as - Every Weekday at 12:30 PM and 9 PM in a single line. How can i do that (2 Replies)
Discussion started by: varlax
2 Replies
8. UNIX for Beginners Questions & Answers
Hi,
I have my script in below path in UNIX
/storage/sas_source/SDTM-Development/FileWatcher/filewatcher.sh
I want to schedule it to run every 30 secs.
Please let me know the steps to do it.
Thanks. (7 Replies)
Discussion started by: prats_7678
7 Replies
9. UNIX for Beginners Questions & Answers
When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
LEARN ABOUT NETBSD
pthread_attr_setinheritsched
PTHREAD_ATTR_GETINHERITEDSCHED(3) BSD Library Functions Manual PTHREAD_ATTR_GETINHERITEDSCHED(3)
NAME
pthread_attr_getinheritedsched -- get and set ``inheritsched'' attribute
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <pthread.h>
int
pthread_attr_getinheritsched(const pthread_attr_t * restrict attr, int * restrict inheritsched);
int
pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);
DESCRIPTION
The pthread_attr_getinheritsched() and pthread_attr_setinheritsched() functions get and set, respectively, the inherit scheduler attribute,
inheritsched, in the attr object. The inheritsched parameter specifies whether a tread created by using attr will obtain its scheduling
attributes directly from attr or whether it will inherit these from the calling thread.
Two values are possible for inheritsched:
PTHREAD_INHERIT_SCHED The thread scheduling attributes will be inherited from the creating thread and the ones in attr are ignored.
PTHREAD_EXPLICIT_SCHED The thread scheduling attributes will be set to the corresponding values in attr.
The following thread scheduling attributes are affected by inheritsched:
o Scheduling policy; see pthread_attr_setschedpolicy(3).
o Scheduling parameter; see pthread_attr_getschedparam(3).
o Scheduling contention scope; see pthread_attr_getscope(3).
RETURN VALUES
If successful, both functions return 0. Otherwise, an error number is returned to indicate the error.
COMPATIBILITY
The standard leaves it unspecified which (if any) is the default inherit scheduler attribute in a newly initialized attribute object.
ERRORS
No errors are defined for pthread_attr_getinheritsched().
The pthread_attr_setinheritsched() function may fail if:
[EINVAL] The value specified by inheritsched is invalid.
SEE ALSO
pthread_attr(3)
STANDARDS
Both functions conform to IEEE Std 1003.1-2008 (``POSIX.1'').
BSD
July 7, 2010 BSD