Does on -p [val] from shell start a process at a specific priority?
-p option in
ksh is related to security. It is used to prevent the shell reading user-controlled files.
bash manual says:
Invoked with unequal effective and real uid/gids
If Bash is started with the effective user (group) id not equal to the real user (group) id, and the
-poption is not supplied, no startup files are read, shell functions are not inherited from the environment, the SHELLOPTS, BASHOPTS, CDPATH, and GLOBIGNORE variables, if they appear in the environment, are ignored, and the effective user id is set to the real user id. If the
-poption is supplied at invocation, the startup behavior is the same, but the effective user id is not reset.
ksh manual says:
A shell is privileged if the
-poption is used or if the real user-id or group-id does not match the effective user-id or group-id (see getuid(2), getgid(2)). A privileged shell does not process $HOME/.profile nor the ENV parameter (see below), instead the file /etc/suid_profile is processed. Clearing the privileged option causes the shell to set its effective user-id (group-id) to its real user-id (group-id).
Use nice to run a program with modified scheduling priority
and renice to alter priority of running processes
renice 16 -p 113344
to change priority of process with Pid 113344 to 16
You need to use
nice for add or remove priority from your processes.
/bin/nice -n NUM command-name
In this way you add a scheduling priority. For your question I suggest to see this forum page.
shellare you using? afaik neither bash nor dash nor tclsh nor zsh have a
bashdoes have a
bashmanpage does not list
OPTIONSsection, so it's easy to miss.