newLISP Fan Club

Forum => newLISP newS => Topic started by: ale870 on March 07, 2009, 09:42:00 AM

Title: HOw to configure Apache for Windows e Linux
Post by: ale870 on March 07, 2009, 09:42:00 AM
Hello,



I'm using newLisp to make a site :-) but the problem is I'm creating some CGI on my PC using Windows (and Apache) and I need to deploy and publish my CGI on a server using Linux.

So my "magic" string in Windows, to execute CGI is different from the one used in Linux:



LINUX: #!/usr/bin/env newlisp

WINDOWS: #!c:/program files/newlisp



How can I avoid to change initi strings in every CGI everytime I publish them?



(I'm using http://nearlyfreespeech.com)



Thank you foro your help!
Title:
Post by: cormullion on March 07, 2009, 02:52:38 PM
i don't know the answer, but if you google for 'shebang line in windows' you'll get lots of other people asking the same question.. :) I read the suggestion that you can install a Windows-version of a Unix shell (Bash/tcsh...) which sounds like a cool idea...!?



Your new project looks fascinating - I hope to look a bit more closely at it soon.
Title:
Post by: ale870 on March 07, 2009, 03:21:19 PM
Thank you (even for the comments about my new project!).

I already use CynWin under windows ;-) but the problem is even in cygwin-windows it uses windows like paths (it's logical:



c:apache22

/usr/local/apache22



I could not find anything about this dual-installation in google.

I was thinking to make a small script in newLisp to "publish" files (read windows files, replace shebang line and post in the site).



Can I use SSH and SFTP in newLisp?