Todo.pl does execute commands backwards, however if you watch it running
you will see what looks like commands running in normal order. You're
actually misinterpreting what you're seeing. What happens is the .bat
file runs and the lines that say "todo.pl dostuff" are executed, however
"dostuff" is not run at that time. What just happened is you witnessed
those items being added to the stack.

When todo actually runs all the items in the stack, it does do it in the
proper order. If you want you can make an experiment. Create a file
test.bat, add it to your scripts directory, and put this inside it:

:: OPTIONAL: Perform todo.pl execution order test
todo.pl "echo last > c:\result.txt"
todo.pl "echo first > c:\result.txt"


When you build a PC, make sure to select this file from the menu of
available scripts (that's what :: OPTIONAL was for).

Then at the end of your build look at c:\result.txt. If the text is
"last" then todo is running backwards, if you see "first" then something
is terribly wrong.

Steve

-----Original Message-----
From: Harm [mailto:mailingl...@weites.com] 
Sent: Thursday, January 08, 2009 1:53 PM
To: Travis Zadikem
Cc: unattended-info@lists.sourceforge.net
Subject: Re: [Unattended] doesn't todo.pl read .bat files backwards

using todo.pl is not necessary when used in 'included .bat files'. Just
put a line in your develop.bat that uses todo.pl to start your .bat file
and all commands inside (without another todo.pl) will just be run like
you would expect. 

 - Harm

On Thu, 2009-01-08 at 11:12 -0700, Travis Zadikem wrote:
> I have created a new .bat file and it has lines like:
>  
> :: Let's reboot now so we can continue the develop.bat stuff
> :: todo.pl .reboot
> :: Install the Windows Disk Timeout.reg
> todo.pl "regedit /s %Z%
> \packages/pillar/APM/Modify_Windows_Disk_Timeout.reg"
> :: Need to install the newer APM that Pillar now uses
> todo.pl "msiexec /qb /l* %SystemDrive%\netinst\logs\apm.txt /i %Z%
> \packages\pillar\APM\030004\axiompm-3.0.4.x86.msi
> REBOOT=ReallySuppress"
> :: Need to patch again Microsoft Storpoint driver for newer APM
> todo.pl "%Z%\packages\93915\WindowsServer2003-KB939315-x86-ENU.exe
> r:n /qb /c:\"msiexec /qb /l* %SystemDrive%\netinst\logs\storpoint.txt"
> :: Need to patch Microsoft Storpoint driver for newer APM
> todo.pl "%Z%\packages\932755\WindowsServer2003-KB932755-x86-ENU.exe
> r:n /qb /c:\"msiexec /qb /l* %SystemDrive%\netinst\logs
> \storpoint.txt""
>  
> which is called from develop.bat.   I thought it was supposed to read
> from bottom to top  (i.e. install KB932755 first and do the .reg
> last)?  When I watch it on the screen it is doing the opposite by
> doing .reg first.   Hmm!  
>
------------------------------------------------------------------------
------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________ unattended-info
mailing list unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


------------------------------------------------------------------------
------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to