Pergunta

I have a .cmd file that start plink.exe and runs several commands. This works great if I open a command prompt and run the .cmd file.

It does not work when I call the .cmd file from an nant script.

Oh. the nant script is on a windows machine and the plink.exe is connecting to a linux machine.

Any ideas?

Foi útil?

Solução

Is the NANT script running under the same user, when you manually run it? Make sure the user's have enough access rights.

Outras dicas

Do you notice any error messages? Perhaps it is not founding the command executable i.e. plink.exe in the PATH environment variable. You can put following in your .cmd file:
echo %PATH%
Compare what you get when you run directly on the prompt and run through nant script. Please also provide the plink command line you are using in the .cmd file.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top