Manual Reference Pages - SLOTH (1)
sloth - slow down a process
sloth [DELAY(ms)] [PROGRAM or PID]
Sloth allows you to slow down a process by specifying (in
miliseconds) the delay. It slows down the process by sending
SIGSTOP & SIGCONT signals to the process over a very fast
period of time, giving the appearance of a slower application.
The number given (as the first command line argument) will be
the wait period before stopping and unstopping the process.
The actual time between a stop and an unstop is DELAY * 10.
The second parameter can either be the name of the program
(with all command line args) to spawn, or the PID of a
currently running process. So, if the second parameter is
all numbers, sloth will assume its PID, if there are any
letters, sloth will attempt to execute it.
# sloth 5000 ines Pirates.nes
This command will run the emulator ines with the game
Pirates. Every 5000ms it will send a SIGSTOP (effectively
pausing the game) wait for 50,000ms (n*10), then send a
SIGCONT, continuing the process where it left off.
# sloth 8000 4172
This command will slow PID 4172 so that it is stopped
for 80,000ms every 8000ms.
Written by: Nick Jennings <email@example.com>
BUGS Report bugs to: Nick Jennings <firstname.lastname@example.org>
Copyright � 2002 Nick Jennings
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.