Search code examples
nantplink

cmd file that starts plink.exe from a nant script not working


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?


Solution

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