I run 3 instances of setiathome from a shell script and that script prints out
the renice commands for me to copy/paste with the mouse into the command line
history. This works in the console (gpm) and in X. When I'm AFK the processes
are reniced to -20 and the reason I want the renice commands in the history
is so I can just double-press up-arrow when I get back to my PC and the
processes get reniced back to 20.
I might just try sourcing the script, that'll probably sort it out, thanks!
On Tuesday 16 July 2002 13:26, Colm MacCarthaigh wrote:
> On Tue, Jul 16, 2002 at 01:16:20PM +0100, Donncha O Caoimh wrote:
>> > Now, if someone could show me how to stuff the renice command into the
> > command line history/buffer from a shell script I wouldn't have to
> > copy/paste it afterwards.
>> in bash; you can use history -s to get thigns into a history, but since
> that's a different shell, it won't work. You could source it instead. Why
> are you doing this though ?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!