Current location: Hot Scripts Forums » Programming Languages » Perl » Avoid chaging the path to perl (shebang) on every upload to server


Avoid chaging the path to perl (shebang) on every upload to server

Reply
  #1 (permalink)  
Old 04-19-05, 01:37 PM
uniqueuser uniqueuser is offline
New Member
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Avoid chaging the path to perl (shebang) on every upload to server

Greetings,

Thanks to MS latest patch (it seems to have changed the way IIS handles URL's) I have had to change from IIS to Apache on a windows paltform. So I downloaded Apache for win and configured httpd.conf.

I now have Active Perl running under Apache (mod_cgi) on my Win XP box and also on an Apache *nix remote server.

...1 day down and so far so good.

But now I realize that every time I upload a perl file to my remote server I need to chage the path to perl (shebang) line at the top of every single file....yikes!

I tried adding this as the last line in httpd.conf:

ScriptInterpreterSource Registry

Which is meant to override the *nix shebang using the win registry reference for Perl executable...but it had no effect?

So my question is: how do I avoid changing the path to perl every time. How does everyone else handle this situtaion?

Any feedback and help on this would be appreciated as after an entire day of googling web and groups (2 days down now) I have not found an answer...or "suspiciously" even a question, so I am hoping I am doinmg something really dumb :-/

TIA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-19-05, 03:22 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
So my question is: how do I avoid changing the path to perl every time. How does everyone else handle this situtaion?
I installed ActiveState Perl to \usr instead of the default \Perl. That lets me use #!/usr/bin/perl for a shebang instead of #!/Perl/bin/perl. If you installed AS Perl on a drive other than C: then this won't help you much. If you do come up with another solution please post back here. That would be good info to have.

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-19-05, 03:27 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Check this page from ActiveState: http://aspn.activestate.com/ASPN/doc...for_Win32_unde

I think if you associate the proper extensions with the Perl interpreter and add the correct handler to Apache you should be OK. I just don't know if have a shebang line in the script will override this.

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl FormMail Problem ennanguyen2002 Perl 2 03-09-05 05:47 PM
perl xml socket server ... stuck cloudiam Perl 2 02-28-05 10:32 AM
Upload from URL to the server where the script is? markg85 Script Requests 0 01-05-05 02:42 PM
move files around an ftp server, with php file upload script? wapchimp PHP 2 12-19-04 08:27 AM
File upload and path to mysql dalio PHP 0 08-12-03 09:24 AM


All times are GMT -5. The time now is 10:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.