What is the difference between executing script using Cygwin and PuTTY?
Posted
by
Lily
on Super User
See other posts from Super User
or by Lily
Published on 2011-03-18T03:22:13Z
Indexed on
2011/03/18
8:12 UTC
Read the original article
Hit count: 289
Now I get a script.sh
, previously it was executed using PuTTY provided it was written in VMWare, but now I want to execute in Windows using Cygwin, I already copy the script.sh
out to the corresponding directory, but some commands Cygwin can not recognise.
generate(){
date +%T
}
TIME = generate()
echo " Current Time: $TIME"
After execute in Cygwin
script.sh: line 3: syntax errot neat unexpected token '$'<\r''
script.sh: line 3:'generate<><
© Super User or respective owner