Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Strange behavior with shell redirection
@ 2009-12-18 12:10 Cyril HAENEL
  2009-12-18 12:30 ` Michael S. Zick
  2009-12-18 18:03 ` Thomas Petazzoni
  0 siblings, 2 replies; 8+ messages in thread
From: Cyril HAENEL @ 2009-12-18 12:10 UTC (permalink / raw)
  To: buildroot

Hello all, sorry I don't know if I am in the good place to ask my 
question...
On an custom board based on the AT91SAM9260 processor, 
buildroot-2009.05, and jffs2 as root file system, I have an "autostart" 
script launched at board startup.
In this script (I use the true bash and not the busybox shell) I launch 
my application, and I redirect the output to a log file :

#!/bin/bash
cd /home/potentiostat
[...]
echo "Launching application"
./potentiostatApplication >> /var/log/potentiostat
# Reboot if application error
if [ $? -ne 0 ]
then
reboot
fi

I use ">>" for the redirection, thus normally each time this script is 
launched it should concatenate the new log after the older one.
But it's not the case, each time I startup the board I have a new log !!

I really don't understand this beahavior, any idea ?

Best Regards,
Cyril HAENEL

-- 

Cyril Haenel
Registered Linux User #332632

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-18 23:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 12:10 [Buildroot] Strange behavior with shell redirection Cyril HAENEL
2009-12-18 12:30 ` Michael S. Zick
2009-12-18 13:37   ` Cyril HAENEL
2009-12-18 14:19     ` Michael S. Zick
2009-12-18 18:03 ` Thomas Petazzoni
2009-12-18 19:30   ` Cyril HAENEL
2009-12-18 20:31     ` Michael S. Zick
2009-12-18 23:13       ` Cyril HAENEL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox