aracid Posted February 10, 2006 Share Posted February 10, 2006 hey all does anyone here run mantra with "nice -10 mantra" - in linux to use low priority for rendering, came across this and it really helps my machine handle background processing does anyone know how to have linux run only this command automatically at this level of priority? Quote Link to comment Share on other sites More sharing options...
lisux Posted February 10, 2006 Share Posted February 10, 2006 hey alldoes anyone here run mantra with "nice -10 mantra" - in linux to use low priority for rendering, came across this and it really helps my machine handle background processing does anyone know how to have linux run only this command automatically at this level of priority? 24583[/snapback] Use "alias" Normally you launch Houdini from a terminal ok? Well, put in you $HOME/.bashrc this: alias mantra='nice -10 mantra' You can do the same with commands like i3dgen for example. Hope this helps. Quote Link to comment Share on other sites More sharing options...
aracid Posted February 10, 2006 Author Share Posted February 10, 2006 hey lisux thats exactly what im looking for thanks alot :-) Quote Link to comment Share on other sites More sharing options...
lisux Posted February 10, 2006 Share Posted February 10, 2006 hey lisuxthats exactly what im looking for thanks alot :-) 24589[/snapback] You are welcome. The magic of Linux, you can touch almost anything. Quote Link to comment Share on other sites More sharing options...
edward Posted February 10, 2006 Share Posted February 10, 2006 I'm not sure that will work as Houdini can't launch aliases. You could just replace the render command maybe? Quote Link to comment Share on other sites More sharing options...
lisux Posted February 14, 2006 Share Posted February 14, 2006 I'm not sure that will work as Houdini can't launch aliases. You could just replace the render command maybe? 24599[/snapback] You are right edward, aliases doesn't work. So the only option i guess is to use a script to wrap the mantra command, something like: #!/bin/bash # mantra exec nice -n 10 ./mantra.bin $@ Save the script with the name mantra, and save the original mantra command with the name mantra.bin, always in the Houdini's binary directory. Anyway it would be great to have the option to choose the render priority, even more any render drive or ROP, priority execution. Quote Link to comment Share on other sites More sharing options...
lisux Posted February 14, 2006 Share Posted February 14, 2006 You are right edward, aliases doesn't work.So the only option i guess is to use a script to wrap the mantra command, something like: #!/bin/bash # mantra exec nice -n 10 ./mantra.bin $@ Save the script with the name mantra, and save the original mantra command with the name mantra.bin, always in the Houdini's binary directory. Anyway it would be great to have the option to choose the render priority, even more any render drive or ROP, priority execution. 24695[/snapback] Better use this code: #!/bin/bash # mantra wraper exec nice -n 10 vmantra $@ Don't forget to give exec permissions to your new mantra wraper Quote Link to comment Share on other sites More sharing options...
edward Posted February 14, 2006 Share Posted February 14, 2006 Have you just tried changing the the Render Command parameter in the ROP to do this instead of using a wrapper script? Quote Link to comment Share on other sites More sharing options...
lisux Posted February 16, 2006 Share Posted February 16, 2006 Have you just tried changing the the Render Command parameter in the ROP to do this instead of using a wrapper script? 24697[/snapback] Yes edward you can do it too. Maybe this option is more elegant that the wraper. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.