#5901 NORM Never A: olpc-logbat script breaks when user's nickname has spaces etc.

Zarro Boogs per Child bugtracker at laptop.org
Tue Jan 8 01:31:42 EST 2008


#5901: olpc-logbat script breaks when user's nickname has spaces etc.
---------------------------+------------------------------------------------
 Reporter:  nealmcb        |       Owner:  jg                
     Type:  defect         |      Status:  new               
 Priority:  normal         |   Milestone:  Never Assigned    
Component:  new component  |     Version:  Git as of bug date
 Keywords:  olpc-utils     |    Verified:  0                 
 Blocking:                 |   Blockedby:                    
---------------------------+------------------------------------------------
 When I run /usr/bin/olpc-logbat to record battery usage, it creates three
 log files:

   90 2008-01-07 23:25 log-Neal
   52 2008-01-07 23:25 log-Neal McBurnett-080107-232547.csv
   90 2008-01-07 23:25 McBurnett-080107-232547.csv

 The first and third files are identical.

 My nickname in /home/olpc/.sugar/default/config is

 nickname = Neal McBurnett

 The script constructs $LOGFILE as
  "log-Neal McBurnett-080107-232547.csv"
 and first saves some information in that file.

 It then saves most of its output using
  tee -a $LOGNAME

 which creates two files because the space in the name.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5901>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list