1

I want to write a shell script in Windows e.g., myscript.sh and then connect to a Linux machine via cygwin and ssh, and execute the script. I've used dos2unix to convert .sh files that were created in windows to run under Linux. Obviously if I am executing a script with ssh it will have to be Linux formatted to work, so I need to know how to create a Linux supprted script using C, OpenOffice basic or vBA?

Are there any recommended methodologies, guides or tutorials you can share with me to demonstrate how to do this?

2
  • This "master" program, do you intend to launch it as a windows GUI or would you launch it from cygwin? Commented Mar 27, 2012 at 18:16
  • If dos2unix is already working for you, why do you need more? Any decent editor will have different encoding options. Notepad++ has it. Commented Mar 27, 2012 at 18:19

1 Answer 1

1

just make sure you used ascii encoding and set line separator to be newline only in your output.

i have done this but use powershell instead, which has encoding option for output file.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.