On 2010-03-18, epanda wrote:
> >
> > let cmd = '!start cmd /c "binary.exe c:/temp/sources -a --enable=all --
> > template gcc 1> infos.txt 2> cppcheck.out & vim --servername GVIM1 --
> > remote-expr "GetAsyncText('infos.txt')" & pause "'
> >
> 
> >
> > Don't worry about the nested quotes, cmd.exe is dumb enough to do the
> > right thing, not what you'd expect.
> 
> Hi Ben,
> 
> Here is my new command but effectively the async Method is not called
> while cppcheck is running but after its run.
> 
> !start cmd /c "cppCheck c:/temp/sources -a --enable=all --template gcc
> 1> infos.txt 2> cppcheck.out & vim --servername GVIM1 --remote-expr
> "GetAsyncText('infos.txt')" & pause"
> 
> 
> Have you got an idea ?

I know just enough about Windows to get by.  In this case, all I
know about & is what I just read here,
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=true,
which says,

    Character  Syntax                Definition
    ---------  --------------------  -------------------------------
    & [...]    command1 & command2   Use to separate multiple
                                     commands on one command line.
                                     Cmd.exe runs the first command,
                                     and then the second command.
    ---------  --------------------  -------------------------------
    && [...]   command1 && command2  Use to run the command
                                     following && only if the
                                     command preceding the symbol is
                                     successful. Cmd.exe runs the
                                     first command, and then runs
                                     the second command only if the
                                     first command completed
                                     successfully. 
    ---------  --------------------  -------------------------------

In other words, & does not cause the preceding command to be run in
the background.

If you want your vim server to run concurrently with cppCheck,
you'll probably have to use a second start command.

(This sort of thing is why I use Cygwin.)

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to