Jump to content


Photo

Is there ANY way to make it work with standard shebang?


  • Please log in to reply
2 replies to this topic

#1 masukica

masukica

    Newbie

  • Member
  • Pip
  • 4 posts
  • Interests:Creating sites
  • Main OS: Windows Vista

Posted 16 June 2010 - 08:05 AM

Hey folks!

I was wondering if there is ANY way at all to make UniServer work with "#!/usr/bin/perl" instead of the whole path? Change something inside the software to know that #!/usr/bin/perl is equal to the whole path to perl that I would manually set?

I use UniServer to test scripts on my PC, but I then upload them to a server so it's pretty inconvenient having to change that every time...

Any and all ideas are greatly appreciated!

Thank you!

#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 17 June 2010 - 04:24 PM

Uniform Server honours the shebang!
By this I men its not ignored for portable reasons.
However it does require a full path, which is changed automatically.

The following is a proposed solution that does not make entries to your PCs registry

Download and extract a version of Uniform Server to a fixed folder.
Run the servers once to establish paths.
Download a Perl plugin (minimum or full) again run severs once.

On the same drive create a new folder at top level of disk named:
(C:/)usr/bin/perl

Now copy everything in folder UniServer/usr/bin

To (C:/)usr/bin/perl

Check that your scripts in folder xxx/UniServer\cgi-bin work

The above is a fixed development environment and not portable

Its proposed because I have not had time to test it. :angry:

All the best
Ric :angry:

#3 Shyokou Ouyou

Shyokou Ouyou

    Member

  • Member
  • PipPip
  • 72 posts
  • Main OS: Windows XP

Posted 14 September 2010 - 10:36 PM


If the standard shebang "#!/usr/bin/perl" works on the remote server, then the "fixed development environment" recommended by "Ric" would be ok, since what you "upload" is "scripts" rather than the whole box ...


Hey folks!

I was wondering if there is ANY way at all to make UniServer work with "#!/usr/bin/perl" instead of the whole path? Change something inside the software to know that #!/usr/bin/perl is equal to the whole path to perl that I would manually set?

I use UniServer to test scripts on my PC, but I then upload them to a server so it's pretty inconvenient having to change that every time...

Any and all ideas are greatly appreciated!

Thank you!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users