-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

  • 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 May 04 '15 at 15:52
  • http://www.tldp.org/guides.html - has two "bash" oriented guides, reading & understanding these will have you do work that will impress anyone. – Hannu May 04 '15 at 16:12

1 Answers1

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
  • 136
  • 3