<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Surprising, but I'm sure it is trivial.<BR>
<BR>
For now try this:<BR>
<BR>
exec ("cmd", "/c \"", pkg, "| cm3", options, "\"")<BR>
<BR>
and if that doesn't work<BR><BR>
> "foo.cmd" in<BR>
write(pkg, "| cm3", options)<BR>
end<BR>
exec("foo.cmd")<BR>
or in the very unlikely change THAT doesn't work,<BR>
exec("cmd /c foo.<FONT face="">cmd</FONT>")<BR>
or<BR>
exec("cmd", "/c", "foo.<FONT face="">cmd</FONT>")<BR>
<BR>
See version.quake for examples. <BR>
cd %cvsroot% <BR>
dir /s/b version.quake <BR>
<BR>
I'm embarrased about my proficiency with cmd and Quake. :)<BR>
<BR>
Actually for an even better related example maybe, look at m3cc\m3makefile and m3gdb\m3makefile.<BR>
dir /s/b %cvsroot%\m3makefile | findstr /i m3cc <BR>
have quick edit turned on in your cmd <BR>
double click the output, right click once maybe (it's hard to remember verbally the muscle memory here)<BR>
and then file.open, paste <BR>
the Windows command line is nice! until you to start "programming it" with cmd (and then it can be nice, but not for long)....<BR>
<BR>
You will be sitting in the target directory likely so you don't need a unique file name.<BR>
I have been prepending "private" temporary files with "_m3", like "_m3responsefile.txt", "_m3something.cmd".<BR>
CM3 uses ".M3" but I don't like hidden files as that achieves on Unix, they just hide stuff that inevitably should be visible.<BR>
(I keep going back and forth about the "@" characters in config files. For now, I have revealed the once per directory mklib and link/gcc, and the occasional C compilation, but kept hidden the repeated runs of m3cg and as; don't worry, this only applies to NT386 and my config-no-install directory.)<BR>
<BR>
What, Reactor is implemented in Quake instead of Modula-3? :)<BR>
<BR>
Later,<BR>
- Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
Date: Wed, 23 Jan 2008 03:50:10 -0500<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com<BR>Subject: [M3devel] new problem on NT386<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<DIV>As you know, I am working to finalize the new Reactor.</DIV>
<DIV> </DIV>
<DIV>I've run into a new problem that did not exist on cm3 v5.2.6 or on cm3 v4.1, so I am hoping someone, perhaps Jay, can shed some light.</DIV>
<DIV> </DIV>
<DIV>Reactor uses quake function calls to invoke operations like build, clean, ship, etc. I have determined that the change directory (cd) call is not working properly.</DIV>
<DIV> </DIV>
<DIV>Here is an example quake function used by Reactor to build a package:</DIV>
<DIV> </DIV>
<DIV>proc build_package (pkg, options) is<BR> exec ("cd", pkg, "| cm3", options)<BR>end<BR></DIV>
<DIV>If I had a package "Hello" located in C:\MyPkgs\Hello, here is what the exec call looks like: exec ("cd C:\MyPkgs\Hello | cm3")</DIV>
<DIV> </DIV>
<DIV>What is happening is that the "cd" is ignored and "cm3" is being called in the current directory (whichever that happens to be). Thus, the cm3.exe can't find the sources for the package.</DIV>
<DIV> </DIV>
<DIV>I've gone back to the old v5.2.6, and this wrong behavior does not occur. Instead, everything works as it should. So something has changed since that point in time that is causing a problem.</DIV>
<DIV> </DIV>
<DIV>Any ideas?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy</DIV></BLOCKQUOTE><br /><hr />Climb to the top of the charts! Play the word scramble challenge with star power. <a href='http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan' target='_new'>Play now!</a></body>
</html>