Q:

Once SSHd into my windows laptop, Putty doesn't recognize python

I'm SSHing from a mac into my windows laptop which has PuTTY on it.  I can SSH in just fine, and everything seems to work, except for python.  When I type in 'python myfile.py' I get the error "-bash: python: command not found" if I'm in the terminal window that is all colorful from PuTTY, and if I type in "cmd" to switch to the Command Window, the error I get is "'python' is not recognized as an internal or external command, operable program or batch file."
I have already gotten python to work on the Windows computer when I am not SSH'ed into it.  So, I have already put Python27 into the Environment Variables.
I have found that if I type in "/cygdrive/c/Python27/python.exe myfile.py", it will run, but I would like to be able to just type in "python".
Does anyone know how to fix this?

A:

Figured it out.  I found this link: http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html#bashrc  which really helped.
I went to the /usr/bin folder, then typed 
ln -s /cygdrive/c/Python27/python.exe
and now I can type "python myfile.py" when ssh'd through PuTTY and it works!

