On Wed, Jul 02, 2008 at 04:43:58PM +0800, ray wrote: > I want to debug an init cript in /etc/rcS.d That script outputs some > messages using echo, so the messages should be printed to the stdout. I > guess the redirect mechanism provided by shell is supposed to work in order > to grab these messages into a file. To verify it, I created a test script in > /etc/rcS.d, writing the content as below: > echo "hello" > /tmp/message > But when I boot up the system, nothing happened. Can somebody give me any > hint?
The root filesystem is probably still read-only at this stage. One useful tool for debugging shell scripts: adding 'set -x' to them in various places (to start running them in trace mode). -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

