Re: on-rev.com Perl recipe

2009-11-02 Thread Sarah Reichelt
 So - any time I have a problem on on-rev, first thing I do is look at the
 line endings ...

I have to say that the On-Rev client and the On-Rev server both do a
brilliant job of eliminating the line ending problems that plague
standard CGI development.
However if you use Perl scripts or any other CGI scripts, then this
will be an issue.

For Mac users, I recommend TextWrangler (the free version of BBEdit).
If you choose Options while saving, you can specify the type of line
endings to use.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on-rev.com Perl recipe

2009-11-01 Thread Alex Tweedly




Yes, after a few tries 

The script was simple :

#!/usr/bin/perl

print Content-type: text/html\n\n;
print HTML;
html
head
titleA Simple Perl CGI/title
/head
body
h1A Simple Perl CGI/h1
pHello World/p
/body
HTML
exit;

It's in http://www.alextweedly.on-rev.com/cgi-bin/hw.pl

It's actually in my home folder/public_html/cgi-bin/hw.pl
permissions is 755

The thing that took me a few tries was line endings - I initially 
transferred it with the on-rev client (from Windows), and that failed to 
convert the line endings (file was 210 bytes locally and on the server).


I switched to transferring it with FileZille (setting the transfer type 
to ASCII, not leaaving it as auto - just to be safe). Now the file is 
210 bytes on my laptop, but 196 on the server - and now it works.  I had 
a similar problem (only took hours to solve it) when I tried using Python.


So - any time I have a problem on on-rev, first thing I do is look at 
the line endings ...


Good luck
-- Alex.


Michael Kann wrote:
I'm happy with how easy it is to get started with the on-rev website. I'm stuck, though, with trying to get a Perl script to work. Can anyone post a working setup recipe? I only need a feeble hello to get going. 


I guess I'll need:

name of file
text of file
placement of file on server
extension on file
permissions on files and folders

I've tried every permutation of the above and nothing has worked. 


Thanks in advance.

Michael Kann








  
___

use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

  


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution