[Jprogramming] pwd? tasks.ijs?
Oleg Kobchenko
olegykj at yahoo.com
Fri Mar 2 13:40:05 HKT 2007
It's disconcerting to observe how much effort
is put into fighting with spaces in the path.
There is a reason why people prefer not to
use spaces in paths for work. Even other measures
are used like mapping a drive, u:/work, to avoid
the troubles and move between environments and versions.
Another thing is crossing the Windows/cygwin boundary:
you need to be clearly aware which shell is being
currently executed and observe calling, escaping and
naming conventions appropriately. E.g. "./" is not
fit for Windows.
One solution could be is a glue .bat file, which
will instantiate cygwin shell and call (possibly
a glue shell script) executable there. First try to run it from
cmd.exe console from J folder with the same arguments.
If it runs from there, it should run from with the "shell" verb.
--- Bill Harris <bill_harris at facilitatedsystems.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> "Devon McCormick" <devonmcc at gmail.com> writes:
>
> > Oops - sorry - I've had it so long I've forgotten that it's my own:
>
> np. I sorta figured / hoped that was the case.
>
> > though it looks like stringreplace works the same way.
>
> I thought about trying it, but I was keeping busy.
>
> So, I've got progress. By your instructions, I created:
>
> ,----[ c:\program files\j601\tempRun.bat ]
> | cd "C:\documents and settings\bill harris\my documents\ ... \model\"
> | ./simuname.flename flename.test07.in
> `----
>
> (part of the FQPN elided and file names changed for brevity)
>
> Running that still doesn't work:
>
> ,----[ .ijx window ]
> | shell ssfl
> |
> | c:\Program Files\j601>cd "C:\documents and settings\bill harris\my documents\ ... \model\"
> |
> | C:\Documents and Settings\Bill Harris\My Documents\ ... \model>./simuname.flename
> flename.test07.in
> | '.' is not recognized as an internal or external command,
> | operable program or batch file.
> `----
>
> I tried taking the "./" off the front of the program name, in case cmd
> was happier that way. Doing that eliminated the error, but nothing
> seemed to happen -- as far as I can tell, no program ran.
>
> I appreciate the help you folks have given so far. This seems simple,
> but, for some reason, I keep getting hung up, mostly on the ./ I need at
> the start of the name of an executable. The program runs from cmd and
> - From bash, just not from anything I initiate in J. I'll try a few more
> things and then let my subconscious work on it overnight. It's
> seemingly not worth the time it's taken me, but I would like to be able
> to do this. I imagine I'll be embarrassed by the easy nature of the
> answer, whenever I get it.
>
> I did try Raul's suggestion of making sure cygblas.dll was in my path.
> It wasn't, and, when I fixed that, I can make the command work from cmd,
> but it still fails when I run shell''. I thought I had duplicated
> Raul's copy on my system earlier; I'll have to try it again and, if it
> works, figure out the differences.
>
> 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.3 (MingW32)
> Comment: For more information, see http://www.gnupg.org
>
> iD8DBQFF56V83J3HaQTDvd8RAljKAJ0XwtqdtlBJ3Zz6wJQWov80W2KHqQCbBRb4
> 4EH2QHYBhYlmaX3JaptjTL0=
> =irrO
> -----END PGP SIGNATURE-----
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
More information about the Programming
mailing list