Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to launch a Windows program from the Cygwin Shell? (similar to firing unix commands in PHP with "exec(…)")

My example: I'd like to launch a database backup in cygwin, however the mysqldump does not exist for cygwin. Therefore I need to fallback to the Windows version (c:\xampp\mysql\bin\mysqldump …). Is it possible to launch this from within Cygwin?

share|improve this question

migrated from stackoverflow.com Jun 5 '11 at 1:45

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

Sure, just run it. The path is probably something like /cygdrive/c/xampp/mysql/bin/mysqldump. Just remember that any paths you pass TO mysqldump need to be in Windows (not cygwin) format. Or you can use the cygpath program to convert the paths for you.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.