windows - Cygwin automatic script launch -


im trying automatically run script using cygwin via cmd. created bat file goes directory , executes .sh file. sh files accosiated cygwin, , tried "cygwin update.sh" in command line. open cygwin. want cygwin automatically run script file. there easy way this, i've been trying find can't. thank you!

you'll want call shell script particular shell, e.g. bash.

when having cygwin open, call which bash figure out binary located. cygwin comes tools can convert paths between cygwin , win32 form, pretty helpful in cases yours.

there 1 other thing may work, depending on setup. there environment variable named pathext declares file extensions deemed "executable" cmd. can used advantage, if windows configured shell's "open" verb executes correct shell file extension .sh (in case).

good luck.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -