Run process with spaces in executable file name

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

Run process with spaces in executable file name

Post by Cyril »

I feel myself dumb today: how to run process (by 'process' function) if name of executable file contains spaces? (Very common case if it resides under "Program Files"). I have tried quoting -- no luck. Quoting for '!' and 'exec' works (although in a non-trivial way), but for 'process' it fails.

In fact I am trying to emulate 'fork' by calling 'process' with '(main-args)' joined back. Maybe there is a better way to do this?
With newLISP you can grow your lists from the right side!

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Currently spaces are not supported in 'process' for Win32. On UNIX spaces are supported for arguments, using single quotes '.

On Win32 use the short 8.3 filename, you can find it out doing a: dir /X in the Windows command shell.

Full support for spaces in commands and arguments is on my To-Do list and will appear in a future version.

Lutz

ps: Peter (pjot) has a 'winfork' on his site: http://www.turtle.dds.nl/newlisp/index.html

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

... now supported on 9.2.17 (tomorrow, Jan 21st)

Lutz

Locked