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?
dos2unixis already working for you, why do you need more? Any decent editor will have different encoding options. Notepad++ has it.