Click here to Skip to main content
15,888,283 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
Hi Everyone,

I have a an asp.net application which uses cygwin to execute shell scripts in Windows environment.sqlcmd utility is used in these shell scripts.
The sqlcmd utility works fine when directly invoked from the .net application or when the script is directly executed at the Cygwin terminal.
But fails on integration ie. when the application creates a cygwin process & executes the script (I'm using cygwin bash.exe to do this) ,sqlcmd utility fails.

It doesn't show any error messages but just gives exit status 1.

Any guidance/help will be highly appreciated.Please help.
Posted
Comments
RickZeeland 14-Jun-17 14:54pm    
Could be a user related problem maybe, does it execute with admin rights ?
Can't you create a .NET application that does what you want, this would be easier to debug.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900