You are not logged in.

#1 2010-01-25 11:08:08

fauxdeluxe
Member
From: en_GB.UTF-8
Registered: 2010-01-10
Posts: 11

[SOLVED] rc.sysinit linebreaks

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. wink

Any ideas?

Last edited by fauxdeluxe (2010-01-25 21:21:18)


Enter any 11-digit prime number to continue...

Offline

#2 2010-01-25 14:35:59

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED] rc.sysinit linebreaks

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

#3 2010-01-25 14:48:25

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] rc.sysinit linebreaks

Why not the usual?

/dir/to/foo.sh > /dev/null 2>&1

Offline

#4 2010-01-25 18:29:00

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: [SOLVED] rc.sysinit linebreaks

or &>/dev/null

Offline

#5 2010-01-25 21:20:57

fauxdeluxe
Member
From: en_GB.UTF-8
Registered: 2010-01-10
Posts: 11

Re: [SOLVED] rc.sysinit linebreaks

Thanks guys. That didn't occur to me as I am not as well versed in bashery as you obviously are. smile

That works perfectly to keep my OCD at bay.


Enter any 11-digit prime number to continue...

Offline

Board footer

Powered by FluxBB