Skip to contentSkip to conversation

Create real-time process from shell script

DISCUSSION gshan 3 participants 4 messages Sep 24, 2008

lore
Share & tools
lore

gshan

author
#0 lore raw

Hello, Is there any way (or linux utilities) could be used to create a real-time process in shell script?

Thanks,
Gavin

#1 lore raw
Quoted 5 lines · gshan

Hello, Is there any way (or linux utilities) could be used to create a real-time process in shell script?

Thanks,
Gavin

nice -20 <command> <args>

or:

<command> <args> & pid=$!
renice -20 -p $pid

-- Jeroen

#2 lore raw
Quoted 5 lines · Jeroen van Rijn
Quoted 2 lines · gshan

Hello, Is there any way (or linux utilities) could be used to create a real-time process in shell script?

nice -20 <command> <args>

If you prefer realtime scheduling (as in SCHED_FIFO etc) you may want to look at chrt (but this isn't really a linux kernel question so this might be the wrong list to ask).

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
author
#3 lore raw
Quoted 4 lines

If you prefer realtime scheduling (as in SCHED_FIFO etc) you may want to look at chrt (but this isn't really a linux kernel question so this might be the wrong list to ask).

I'm sorry for that. But chrt only take effect on real-time processes?