Re: job_start 7za underwindows returns process 0 fail

2019-12-03 Thread Ni Va
Thank you for answer.

Le mardi 3 décembre 2019 11:54:35 UTC+1, Christian Brabandt a écrit :
>
>
> On Di, 03 Dez 2019, Ni Va wrote: 
>
> > Hi, 
> > 
> > Considering this command : 
> > cd /d D:/Softs/Vim/vim81 && D:/Softs/Vim/vim81/7za.exe a 
> "C:/Users/foo.bar/ 
> > desktop/archive Name.7z" "d:/Work/Foo/Bar/archive Path Name" 
>
> this command uses &&, so it needs a shell to parse it. 
>
> > call system(command) is a success with "archiv Name.7z" present. 
> > job_start(command) returns process 0 fail 
>
> job_start does not use a shell so it fails. 
>
> Best, 
> Christian 
> -- 
> Was dem Herzen widerstrebt, läßt der Kopf nicht ein. 
> -- Arthur Schopenhauer 
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/0013cf94-2e66-468f-a400-99e05a765c07%40googlegroups.com.


Re: job_start 7za underwindows returns process 0 fail

2019-12-03 Thread Christian Brabandt


On Di, 03 Dez 2019, Ni Va wrote:

> Hi,
> 
> Considering this command :
> cd /d D:/Softs/Vim/vim81 && D:/Softs/Vim/vim81/7za.exe a "C:/Users/foo.bar/
> desktop/archive Name.7z" "d:/Work/Foo/Bar/archive Path Name"

this command uses &&, so it needs a shell to parse it.

> call system(command) is a success with "archiv Name.7z" present.
> job_start(command) returns process 0 fail

job_start does not use a shell so it fails.

Best,
Christian
-- 
Was dem Herzen widerstrebt, läßt der Kopf nicht ein.
-- Arthur Schopenhauer

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20191203105429.GH28132%40256bit.org.


job_start 7za underwindows returns process 0 fail

2019-12-03 Thread Ni Va
Hi,

Considering this command :
cd /d D:/Softs/Vim/vim81 && D:/Softs/Vim/vim81/7za.exe a 
"C:/Users/foo.bar/desktop/archive Name.7z" "d:/Work/Foo/Bar/archive Path 
Name"


call system(command) is a success with "archiv Name.7z" present.
job_start(command) returns process 0 fail


Executables are running under windows 10
gvim 8.1.2383 in 32bits
7za.exe in 32bits version with 7za.dll associated



I have tried to put a MyHandler callback on my job_start without any result.

  fun! MyHandler(channel, msg) "{{{
>   echomsg string(a:msg)
>   endfunction "}}}
>   let options = {
> \ "callback": "MyHandler",
> \ 'timeout': 3
> \}
>   let jobid = job_start(cmd, options) | echomsg jobid




How can I fix that ?
Thank you
NiVa

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/c40ce1d6-1794-4184-9e58-5ecbc2d16c1a%40googlegroups.com.