![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() |
Running a Mac-Written Script on a Linux Machine
Hey guys, it's been a while. I'm only here for a quick question, because I need this answered asap for the work I'm doing (at Nortel btw).
I've written the simplest piece of code ever, on a Mac in MacPerl. #!/usr/bin/perl print "Hello World!"; I can run this fine on the Mac's test console, receiving the appropriate output. However, when I upload it to the Linux server via Fetch, I get a 500 Internal Server Error. Despite the fact that there are hundreds of other working Perl scripts in that exact same directory (with the same file permissions). My first thought is that the ASCII is being encoded differently, such as with newlines and quotations. Can anyone confirm this, and suggest a fix? P.S. Congrats PFO. You are the first website (besides Google) that displays correctly on the old Internet Explorer so far! You're a life saver! ![]() |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Nov 2007
Posts: 15
Rep Power: 0
![]() |
Re: Running a Mac-Written Script on a Linux Machine
The problem is that you're not printing a header....try adding this
print "Content-type:text/html\n\n"; |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
Re: Running a Mac-Written Script on a Linux Machine
I figured out it wasn't transferring the newlines properly. Thanks for the help anyways.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need a script to add in IP's for Red Hat Linux | Thaidog | Bash / Shell Scripting | 2 | Aug 24th, 2007 11:05 PM |
| Slackware installation guide for Linux beginners | coldDeath | Coder's Corner Lounge | 104 | Jul 29th, 2007 4:40 AM |
| My views on Linux | Marvin | Coder's Corner Lounge | 70 | Dec 19th, 2006 11:13 AM |
| AutoIt, Apple Script, what about Linux? | Nebula | Coder's Corner Lounge | 5 | Mar 20th, 2006 7:07 PM |
| running linux | arod199113 | Coder's Corner Lounge | 5 | Feb 12th, 2005 5:28 PM |