You are not logged in.
Pages: 1
Hi there,
I have a small script that I wish to run during the sysinit process. I have inserted it into rc.sysinit as below.
stat_busy "Description of task"
/dir/to/foo.sh
stat_done
This runs fine, but as with other tasks that spew text during their operation, they end up echoing to the screen after the [BUSY] marker. Is there a simple way to cure this so the output text appears below a few \n or is suppressed? It doesn't hinder the system at all, but it annoys the heck out of me, and I am sure some of you can appreciate that we can be rather compulsive when it comes to being neat and tidy with our systems.
Any ideas?
Last edited by fauxdeluxe (2010-01-25 21:21:18)
Enter any 11-digit prime number to continue...
Offline
Yup - you can serialize the boot sequence - but that will increase your boot-time.
So - how often do you boot? It's (usually) just a small fraction of your uptime - can't quite see the fuss ....
Offline
Why not the usual?
/dir/to/foo.sh > /dev/null 2>&1
Offline
or &>/dev/null
Offline
Thanks guys. That didn't occur to me as I am not as well versed in bashery as you obviously are.
That works perfectly to keep my OCD at bay.
Enter any 11-digit prime number to continue...
Offline
Pages: 1