To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 642
    PRGM button - am I missing something? —Jeff Chrisope
   I may be missing something horribly simple, but I can't seem to get the PRGM button on the RCX to change the program being executed by legOS. For instance, if I dll foo.lx -p0 dll bar.lx -p1 I can only get bar.lx (or whatever I 'dll' last) to (...) (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Markus L. Noga
     Hi Jeff, Jeff Chrisope schrieb: (...) There could be a problem with getopt in the Windows-libc. Try inserting a printf after the loop dealing with options, to show which program slot dll is actually transmitting to. (...) Hey, aren't you with (...) (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Ben Jackson
   (...) I think you need `dll -p0 foo.lx' and `dll -p1 bar.lx'. That syntax is working fine for me. Right now my battery meter is in slot 0 (fading fast!) and the program I'm debugging is in slot 1. --Ben (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Markus L. Noga
   Ben Jackson schrieb: (...) If getopt is working right, the position of switches shouldn't matter. If they do, it's broken. Markus. (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Ben Jackson
   (...) From getopt(3) on BSD and other systems: When all options have been processed (i.e., up to the first non-option argument), getopt() returns -1. However, from the Linux manpage: By default, getopt() permutes the contents of argv as it scans, so (...) (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Markus L. Noga
   Ben Jackson schrieb: (...) OK, I'll change the docs and examples, then. Too bad, I thought position-independence very nifty indeed. Markus. (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)
   
        Re: PRGM button - am I missing something? —Jeff Chrisope
   (...) Yep, the option order was the problem on Windows. getopt does indeed happily ignores any options found after the first non-option. Thanks again! -Jeff p.s. And don't worry, I can take any Windows jabs you have to offer - I've heard 'em all. (...) (25 years ago, 13-Jan-00, to lugnet.robotics.rcx.legos)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR