Angus Laycock
Angus Laycock

Reputation: 11

Can I call a UNIX script from Nant on an XP machine

I have installed TeamCity and what to call a UNIX script from a step in it using using Nant. Done a simple test to see that I can call a Nant build that simply writes a test message. Now I am tring to build the code to call a Unix script and cannot find anything of use on the WEB. Does anyone know if it can be done?

Thanks

Angus

Upvotes: 1

Views: 190

Answers (1)

Nikolaos Georgiou
Nikolaos Georgiou

Reputation: 2874

Windows XP can't execute Unix scripts, so nant can't do it either.

You can install cygwin which can execute Unix scripts and then use that through nant's exec task.

Something like:

<exec program="c:\cygwin\bin\bash.exe" commandline="--login -i myscript.sh" />

Upvotes: 2

Related Questions