nice(1) General Commands Manual nice(1)Name
nice, nohup - execute a command at a lower priority
Syntax
nice [-number] command [arguments]
nohup command [arguments]
Description
The command executes command with low scheduling priority (Bourne Shell only). If the number argument is present, the priority is incre-
mented (higher numbers mean lower priorities) by that amount up to a limit of 20. The default number is 10.
The super-user may run commands with priority higher than normal by using a negative priority, for example, `--10'.
The command executes command immune to hangup and terminate signals from the controlling terminal. The priority is incremented by 5. The
command should be invoked from the shell with an ampersand (&) in order to prevent it from responding to interrupts by or stealing the
input from the next person who logs in on the same terminal. The syntax of is also different.
Options-number Increments the priority by a specified number up to a limit of 20. The default is 10.
Restrictions
The and commands are particular to If you use then commands executed with an ampersand (&) are automatically immune to hangup signals while
in the background. There is a built-in command which provides immunity from terminate, but it does not redirect output to nohup.out.
The command is built into with a slightly different syntax than described here. The form ``nice +10'' nices to positive nice, and ``nice
-10'' can be used by the superuser to give a process more of the processor.
Diagnostics
The command returns the exit status of the subject command.
Files
nohup.out standard output and standard error file under nohup
See Alsocsh(1), getpriority(2), renice(8)nice(1)
Check Out this Related Man Page
NICE(1) BSD General Commands Manual NICE(1)NAME
nice -- execute a utility with an altered scheduling priority
SYNOPSIS
nice [-n increment] utility [argument ...]
DESCRIPTION
nice runs utility at an altered scheduling priority. If an increment is given, it is used; otherwise an increment of 10 is assumed. The
super-user can run utilities with priorities higher than normal by using a negative increment. The priority can be adjusted over a range of
-20 (the highest) to 20 (the lowest).
Available options:
-n increment
A positive or negative decimal integer used to modify the system scheduling priority of utility.
DIAGNOSTICS
The nice utility shall exit with one of the following values:
1-125 An error occurred in the nice utility.
126 The utility was found but could not be invoked.
127 The utility could not be found.
Otherwise, the exit status of nice shall be that of utility.
COMPATIBILITY
The historic -increment option has been deprecated but is still supported in this implementation.
SEE ALSO csh(1), getpriority(2), setpriority(2), renice(8)STANDARDS
The nice utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').
HISTORY
A nice utility appeared in Version 6 AT&T UNIX.
BUGS
nice is built into csh(1) with a slightly different syntax than described here. The form 'nice +10' nices to positive nice, and 'nice -10'
can be used by the super-user to give a process more of the processor.
BSD June 6, 1993 BSD
I would like to alert myself when a file has been modified using a script but im not sure where to begin the only command i can think to use is the touch command (6 Replies)
Hi Guys,
i'm having trouble changing the path-priority. Now both priorities are 1 as you can see in the lspath-output.
Any ideas why the chpath command fails?
# chpath -l hdisk3 -p fscsi1 -a priority=10
Method error (/etc/methods/chgdisk):
0514-080 Invalid routine argument... (4 Replies)
Hi,
I am learning unix shell scripting. I want to create a utiltiy. I will explain about that. When I run my utility, it will display only the directories of a particular directory like the below output. For example
My current directory is /home/balamv and it has 3 directories called Andrew,... (9 Replies)
Hi there all..
I got 4 HP ux systems and 4 AIX systems here.
when I let LPSTAT make a report in aix with -W
I get a really nice report.
Example:
Queue Dev Status Job Files User PP % Blks Cp Rnk
-------------------- -------------- --------- ------ ------------------ ---------- ---- ---... (12 Replies)
Hi all,
First of all, this is my first post in this forum, so it's nice to know you. I hope not to brake any 'rule' ;)
I'd like to know, if it's possible to remove a parameter from command line, regardless of its position? I've found a solution using shift, if it's the first argument. But, I... (6 Replies)
Hello,
Some guy said to me that using the nice command to decrease the priority of a process is a myth, that the operating system corrects the priorities as the processes need cpu. Is this true? (4 Replies)
Hi everyone,
I am starting a nohup from a script (via scheduling system) as follows:
ssh user@server "nohup command & ; exit 0"
This command is not returning the command prompt untless I press "ENTER". This is causing the schedule to hang at this job and not continue with the rest of the jobs.... (12 Replies)
----------- Summary -----------
I need a command/set of commands that can help me simulate a shell terminal via a PHP web page using commandline functions. How can I combine the power of nohup and a while loop to:
start the shell,
execute commands and print output (and errors i.e. 2>&1)... (8 Replies)
Dear Friends,
I have a directory when i take du of that directory it takes alot of memory and cpu and I/O, i want to use nice to run my script that have du command slowly so it won't take I/O and cpu, please suggest. (6 Replies)
Good afternoon,
I'm have program that executes in background another programs. The main program would be programA and the programs executed by the main one, would be program1a, program1b and program1c.
I need the programs to continue the execution no matter if the shell connection is lost,... (6 Replies)
Hi Folks ,
I have the below script that will start the components one by one by giving an interval of few seconds that if first component is started then there is interval of
few seconds and then the second component is started , but by this way it takes time, i want to make the process faster... (8 Replies)
Bash Shell/Oracle Linux 6.4
Following is an ls -lh output. Files which are equal to or higher than 1Gigabytes will displayed with G in the 5th column of the output.
I am trying to find all files which are equal to or higher than 1G
File sizes are shown in the 5th column. So, I tried cut -d'... (7 Replies)
Good Morning
I need your help please, i tried to execute this script using nohup command but it gets in status stopped
nohup ./SapInterfases.sh > SapInterfases.log &
prodstg02$ jobs
+ Stopped(SIGTTOU) nohup ./SapInterfases.sh > SapInterfases.log &
I check out log:
$ more... (15 Replies)
Hi,
I tried to run a script as a back end process and getting below error for nohup command in solaris10.
Any help will be great.
server1# nohup (time ./genrep) > genrep.log 2>&1
ksh: syntax error: `(' unexpected
Able to run genrep a standalone but getting error when i try with... (5 Replies)
For years I have spawned shell scripts with nohup and ampersand and they run whether or not I stay logged in. Recently a client told us that we had to set a keep alive timeout on all of our Redhat 7.6 Linux servers. Our sysadmin set the following parameters in the sshd_config file on all of our... (10 Replies)