07-16-2008
Normally how many oninit will run?
Hi All,
I am using Sun OS 5.9, when I did
ps -ef | grep oninit | wc -l
60
I come to know there are 60 oninit process, In Normal situation how many oninit process will run at a time?
Thanks
Sarwan.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Would like to ask the experts if anyone knows how to run a script like this:
dtterm -title shell1
run process1 on shell1
dtterm -title shell2
run process2 on shell2
cheers!
p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Discussion started by: mochi
2 Replies
2. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
3. AIX
In my cronjob, I would like to schedule my script.sh to run every minutes. I crontab -e and have in line below but it didn't seems to run at all.
* * * * * script.sh
When I run it manually, I can run it. Is that anything wrong with the above line?
If I change it to something like below,... (4 Replies)
Discussion started by: ngaisteve1
4 Replies
4. Solaris
Hi to all,
I have noticed lately that in one of my Database Servers (using IDS INFORMIX 11.5) there are some process called oninit -r.
The strange thing is that it seems that there is no option -r in oninit command so i dont understand how these processes exist.
In the first couple of days... (3 Replies)
Discussion started by: omonoiatis9
3 Replies
5. Shell Programming and Scripting
how to run an already developed script run against a list of ip addresses solaris 8 question.
the script goes away and check traffic information, for example
check_GE-VLANStats-P3 1.1.1.1
and returns the results ok.
how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies
6. Shell Programming and Scripting
If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this:
testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy)
running the same through cron I get:
testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies
7. Shell Programming and Scripting
Hello all,
I'm trying to write a script to gather and send data and it works just fine at the bash command line, but when executing from CRON, it does not run properly.
My scripting skills are pretty limited and there's probably a better way, but as I said it works at the command line, but... (12 Replies)
Discussion started by: rusman
12 Replies
8. UNIX for Dummies Questions & Answers
I am from MQ/MB technology. My requirement is to display the queue manger and broker status on daily basis.
If I manually run the script, it works fine and displays output. But when I have scheduled the same using cronjobs it shows only the queue manger status and not the broker status.
Can... (3 Replies)
Discussion started by: Anusha M
3 Replies
9. Shell Programming and Scripting
Hi guys,
I have written a script that waits for a trigger file.
Then checks the time of the trigger.
if the trigger finished between 8pm and midnight then runs a job.
else it waits till 1am then runs a different job.
I am still very new to scripting so any suggestions to improve my... (4 Replies)
Discussion started by: twinion
4 Replies
10. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT OSF1
sched_setparam
sched_setparam(3) Library Functions Manual sched_setparam(3)
NAME
sched_setparam - Sets the scheduling parameters of the specified process (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <sched.h>
int sched_setparam (
pid_t pid,
const struct sched_param *param);
PARAMETERS
pid Specifies the ID of the process whose scheduling parameters are set. If pid is zero, the scheduling parameters of the calling
process are set.
*param Specifies a pointer to a sched_param structure, which contains the scheduling parameters of the specified process. Currently, the
sched_param structure contains only a priority field. The value of the priority value is any integer within the priority range for
the current scheduling policy of the process specified by pid.
DESCRIPTION
The sched_setparam function changes the scheduling parameters of a process. Setting priorities such that the most critical process has the
highest priority allows applications to determine more effectively when a process will run.
At run time, a process starts out with an initial priority of SCHED_PRIO_USER_MAX. A call to the sched_setparam function that raises the
priority of a process also raises the maximum priority for the process. This higher maximum priority exists for the life of the process or
until the priority is set to a new, higher priority through another call to the sched_setparam function. The maximum priority cannot be
adjusted downward, but subsequent calls to the sched_setparam or sched_setscheduler functions can specify that a process run at a lower
priority.
You must have superuser privileges to set the priority above the user maximum, SCHED_PRIO_USER_MAX. A superuser can set the priority out-
side the range of the specified pid's scheduling policy.
When the function completes, the target process resumes execution after all other runnable processes of equal or greater priority are
scheduled to run. If the priority of the target process is set higher than that of the calling process, and if the target process is ready
to run, then the target process will preempt the calling process. If the calling process set its own priority lower than some other
process, then the other process will preempt the calling process. In either situation, the calling process might not receive notification
of the completion of the requested priority change until the target process has executed.
The scheduling parameters of the process as indicated by pid are obtained with a call to the sched_getparam function.
The priority of a process is inherited across fork and exec calls.
RETURN VALUES
On a successful call to the sched_setparam function, the scheduling parameters are set and a value of 0 (zero) is returned. On an unsuc-
cessful call, a value of -1 is returned and errno is set to indicate that an error occurred and the priority is unchanged.
ERRORS
The sched_setparam function fails under the following conditions:
[EINVAL] One or more of the requested scheduling parameters is outside the range defined for the specified pid's scheduling policy.
This error does not apply for superusers.
[EPERM] The requesting process does not have permission to set the scheduling parameters for the specified process, nor does it have
appropriate privilege to invoke the sched_setparam function.
[ESRCH] No process can be found corresponding to that specified by pid.
RELATED INFORMATION
Functions: getpid(2), sched_getparam(3), sched_getscheduler(3), sched_setscheduler(3)
Guide to Realtime Programming delim off
sched_setparam(3)