[cw-discuss] Running an uninstalled app from command line

Frank S. Bernhardt frank at bcsi.ca
Thu Nov 9 13:29:12 CST 2006


Bonjour Francois

Francois Gouget wrote:
> Hi Frank,
>
> Frank S. Bernhardt wrote:
>> Under 4.2 of CX Pro I could run a shell script:
>>
>> #! /bin/sh
>>
>> cd "/home/frank/mnt/THEODIN/pbs113"
>> "/opt/cxoffice/bin/wine" --workdir "." "./pbs.bat"
>>
>> And it ran just beautifully.
>>
>> Since I've upgraded to CX 5.3 Pro this no longer works. Scanning all the
>> docs and the list  and trying everything suggested I'm getting the
>> impression that the only way for this to work is to first install the
>> app into a bottle.
>
> This is not related to bottles. It's a regression in wcmd.exe, Wine's 
> reimplementation of cmd.exe which is used to run batch files. This bug 
> will be fixed in the upcoming CrossOver 6.0 release, but in the 
> meantime the following command should work:
>
> "/opt/cxoffice/bin/wine" --workdir "/home/frank/mnt/THEODIN/pbs113" 
> wcmd.exe /c pbs.bat
>
Unfortunately, this had the exact same symptoms as my own command line.

[frank at merlin pbs113]$ pwd
/home/frank/mnt/THEODIN/pbs113
[frank at merlin pbs113]$ "/opt/cxoffice/bin/wine" --workdir 
"/home/frank/mnt/THEODIN/pbs113" wcmd.exe /c PBS.BAT
Using the default (dotwine) bottle.
WCMD Version 0.17

Y:\mnt\THEODIN\pbs113>             

Again, typing 'pbs' (no quotes) launched the application.
>
> Just an extra note for information, '--workdir .' is not needed since 
> by default applications are started in the current directory.
>
I tried all sorts of variations with/without --workdir all with the same 
results (I was in the directory at the time). Putting the wcmd.exe /c 
PBS.BAT withing quotes gave me:

[frank at merlin pbs113]$ "/opt/cxoffice/bin/wine"  "wcmd.exe /c PBS.BAT"
Using the default (dotwine) bottle.
winewrapper.exe:error: cannot execute L"\"wcmd.exe /c PBS.BAT\""

Interestingly, I tried the command in a shell script that was launched 
from an icon on my desktop. I thought my system hung. Eventually it did 
respond to my commands but the wineserver must have been gobbling up cpu 
cycles. After switching to the tty1 (Ctrl Alt F1) and logging in as root 
I did a ps -ef and it took a while to display and it displayed it in 
spurts of a dozen lines at a time. And I'm running a P4 2.4GHz with 1GB 
memory! When I killed the 3 wine processes everything went back to 
normal. I don't know if it's relevant but I thought you'd be interested.

Would this possibly have something to do with samba mounted files?

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frank.vcf
Type: text/x-vcard
Size: 266 bytes
Desc: not available
Url : http://crossover.codeweavers.com/pipermail/discuss/attachments/20061109/8222c938/frank.vcf


More information about the discuss mailing list