Jump to content
The Uniform Server Community
Sign in to follow this  
masukica

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

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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 PC’s 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

 

It’s proposed because I have not had time to test it. :angry:

 

All the best

Ric :angry:

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...