-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dan Bron <[EMAIL PROTECTED]> writes:
> You'll have to fiddle with the arguments to bash a bit (to get the > $PATH right, to make it load your profile, to make sure the stdin is > interpreted as a script, not as interactive, etc). And that's the rub. ,----[ ijx window ] | cmd =: 0 : 0 | pwd | cd "c:/Documents and Settings/Bill Harris/j602-user/labs/mcsimbasic/" | makemcsims sir.model | ) | cmd spawn 'bash' | /cygdrive/c/Documents and Settings/Bill Harris/j602-user/labs/mcsimbasic | bash: line 3: makemcsims: command not found `---- but ,----[ rxvt ] | $ type makemcsims | makemcsims is /usr/local/bin/makemcsims `---- Making a slight change works! ,----[ More ijx window ] | cmd spawn 'bash --login' | /home/bill harris | | ________________________________________ | | Mod - Model Generator Program v5.0.0 | | Copyright (c) 1993-2004 by F. Bois & D. Maszle. All rights reserved. | | MCSim comes with ABSOLUTELY NO WARRANTY; | This is free software, and you are welcome to redistribute it | under certain conditions; see the GNU General Public License. | | | * Created model file 'model.c' | Linking mcsimstd.sir ... | * Created: standalone mcsimstd.sir for model "sir.model". `---- > Also, if you're only cd'ing once, then once I commit my changes to > task, you'll have the option to name the working directory in the > right hand argument (you'll link it with ; ). ... the RH argument to bash, right? That would be nice, because then I suppose I can show lines in the lab that look more like what you'd type at a bash prompt, which might be helpful in my use of the lab. > If you're only trying to cd to your Cygwin home dir, then you might > not even need to wait for that -- you could using bash's --login > parameter (I think). Good tip (above); it worked when I included a cd at the start of my script. > I'll post a more considered reply later, if you like. In a bit of a > hurry at the moment. When you get the time. I tried my naive changes to task (doing the same thing you did last time even though the arguments to CreateProcessA are different in j602), and it seemed not to work. Thanks, Bill - -- Bill Harris http://facilitatedsystems.com/weblog/ Facilitated Systems Everett, WA 98208 USA http://facilitatedsystems.com/ phone: +1 425 337-5541 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: For more information, see http://www.gnupg.org iD8DBQFH7AFY3J3HaQTDvd8RAgBxAJ0fcmlZ8aiMCcBwBCaSH+Qg2Yv5xwCdEVOU 5NFBlHtoARDb6JYisgmt65w= =aYDf -----END PGP SIGNATURE----- ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
