Linux Commands Examples

A great documentation place for Linux commands

snice

send a signal or report process status


see also : kill - killall - nice - pkill - renice

Synopsis

skill [signal] [options] expression
snice
[new priority] [options] expression


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

snice -c seti -c crack +7

Slow down seti and crack commands.

skill -KILL -t /dev/pts/*

Kill users on PTY devices.

skill -STOP -u viro -u lm -u davem

Stop three users.


0
source
            
ALLPROG = kill oldps uptime tload free w top vmstat watch skill snice pgrep pkill sysctl
BPROG = # -> BINDIR
ifdef CONFIG_USER_PROCPS_KILL
BPROG += kill
ifdef CONFIG_USER_PROCPS_SNICE
UPROG += snice
endif
PPROG = # -> PROCDIR
ifdef CONFIG_USER_PROCPS_PGREP
PPROG += pgrep
0
source
            
UPROG = oldps uptime tload free w top vmstat watch skill snice # -> USRBINDIR
PPROG = pgrep pkill# -> PROCDIR
SPROG = sysctl
MAN1 = oldps.1 uptime.1 tload.1 free.1 w.1 top.1 watch.1 skill.1 kill.1 snice.1 pgrep.1 pkill.1
MAN1 = oldps.1 uptime.1 tload.1 free.1 w.1 top.1 watch.1 skill.1 kill.1 snice.1 pgrep.1 pkill.1
MAN5 = sysctl.conf.5
MAN8 = vmstat.8 sysctl.8 # psupdate.8
0
source
            
ALLPROG = kill oldps uptime tload free w top vmstat watch skill snice pgrep pkill sysctl
GDBPROGS := $(ALLPROG:%=%.gdb)
BPROG = # -> BINDIR
ifdef CONFIG_USER_PROCPS_KILL
ifdef CONFIG_USER_PROCPS_SNICE
UPROG += snice
endif
PPROG = # -> PROCDIR
ifdef CONFIG_USER_PROCPS_PGREP
PPROG += pgrep
0
source
            
for i in free pgrep pkill pmap pwdx skill slabtop snice tload top uptime vmstat w watch
do
mv "usr/usr/bin/$i" "usr/bin"
done
rm -fr "usr/usr"
0
source
            
bin_rock='bash sleep sync sort xargs grep cut skill snice find'
sbin_fhs='clock getty init update mkswap swapon swapoff telinit
fastboot fasthalt halt reboot shutdown ifconfig route
0
source
            
bin_rock='bash sleep sync sort xargs grep cut skill snice find'
sbin_fhs='clock getty init update mkswap swapon swapoff telinit
fastboot fasthalt halt reboot shutdown ifconfig route

description

These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead.

The default signal for skill is TERM. Use -l or -L to list available signals. Particularly useful signals include HUP, INT, KILL, STOP, CONT, and 0. Alternate signals may be specified in three ways: -9 -SIGKILL -KILL.

The default priority for snice is +4. Priority numbers range from +20 (slowest) to -20 (fastest). Negative priority numbers are restricted to administrative users.

options

-f--fast

Fast mode. This option has not been implemented.

-i--interactive

Interactive use. You will be asked to approve each action.

-l--list

List all signal names.

-L--table

List all signal names in a nice table.

-n--no-action

No action; perform a simulation of events that would occur but do not actually change the system.

-v--verbose

Verbose; explain what is being done.

-w--warnings

Enable warnings. This option has not been implemented.

-h, --help

Display help text and exit.

-V, --version

Display version information.

process selection options

Selection criteria can be: terminal, user, pid, command. The options below may be used to ensure correct interpretation.
-t
, --tty tty

The next expression is a terminal (tty or pty).

-u, --user user

The next expression is a username.

-p, --pid pid

The next expression is a process ID number.

-c, --command command

The next expression is a command name.

reporting bugs

Please send bug reports to procps[:at:]freelists[:dot:]org (procps[:at:]freelists[:dot:]org)

signals

The behavior of signals is explained in signal(7) manual page.

standards

No standards apply.


see also

kill , kill, killall , nice , pkill , renice , signal


author

Albert Cahalan (albert[:at:]users.sf[:dot:]net) wrote skill and snice in 1999 as a replacement for a non-free version.

How can this site be more helpful to YOU ?


give  feedback