Cygwin Bash Script?

-1

I have no real clue about linux, but need a simple script to copy what I manually do 1. Open Cygwin 2. Type a directory name (micros) 3. Type a command (reload)

That's it...I just can't get it to work. anyone have a

John Connelly

Posted 2015-05-04T15:40:50.520

Reputation: 1

What have you scriptedso far? Besides, you do not need to know anything linx specific using cygwin. Knowledge of Bash would be sufficient. – Thomas Junk – 2015-05-04T15:52:48.787

http://www.tldp.org/guides.html - has two "bash" oriented guides, reading & understanding these will have you do work that will impress anyone. – Hannu – 2015-05-04T16:12:32.430

Answers

1

Given you have cygwin installed in c:\cygwin you can do something link this

c:\cygwin\bin\bash.exe --login -i -c 'cd "/cygdrive/c/pathtofolder"; reload'

A quick search on this forum points you to this question where John T give this same answer. Credit goes to him.

Hope it helps

Leo Nomdedeu

Posted 2015-05-04T15:40:50.520

Reputation: 36