Announcement

Collapse
No announcement yet.

PBCC CGI's -- can they run on a Linux server ??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PBCC CGI's -- can they run on a Linux server ??

    Hi all, long time since I've been around PB but it's still my favorite language.

    I want to write a fairly simple CGI (to mail out daily messages from a web site I run as a chron job) but I don't know the basics about doing it in PB. Do CGI executables in PB run only on Windows servers, or is there some way to make them play nicely with a regular Linux server ??

    Thanks -- Howard Ballinger

    #2
    Originally posted by Howard Ballinger View Post
    Hi all, long time since I've been around PB but it's still my favorite language.

    I want to write a fairly simple CGI (to mail out daily messages from a web site I run as a chron job) but I don't know the basics about doing it in PB. Do CGI executables in PB run only on Windows servers, or is there some way to make them play nicely with a regular Linux server ??

    Thanks -- Howard Ballinger
    PB compiles Windows executables so no, they won't natively run on a Linux server.

    However, the cgi application doesn't necessarily need to run on the same server that hosts the web site. You could install a machine with Windows and a free web server and host the CGI application there. The web page would refer to this server (instead of 'localhost' per say).

    There is also the Crossover Linux application that some have had good luck running PB executables on, but you'd have a bit of work cut out getting the configuration of Crossover and your server software right.

    If it were me, I'd write the app in PHP, PERL, or some other language that can run natively in Linux.
    Software makes Hardware Happen

    Comment


      #3
      I've never tried it myself, but WINE is supposed to run Windows applications under Linux. I'm not sure though, if Linux can "interact" with that Windows application.

      Comment


        #4
        Windows apps under Linux...

        hi,

        I've tested all my commercial Windows apps (compiled with PB/Win 8x) with Ubuntu Linux and Wine. Worked very fine - not only the features, there's also no speed disadvantage...

        But these are "fat client" apps, so I don't know how Wine handles server apps (and/or services). And as Knuth mentioned, you have to know the interaction possibilities.

        Perhaps the guys of Wine can support you with "positive" answers:
        Open Source Software for running Windows applications on other operating systems.


        bye,
        Volker
        www.zentrader.de (Trading system development and simulation tools)

        Comment


          #5
          Originally posted by Joe Byrne View Post
          If it were me, I'd write the app in PHP, PERL, or some other language that can run natively in Linux.
          Don't forget Python and Regina Rexx. Or even a shell script, depending on what you want to accomplish.
          Erich Schulman (KT4VOL/KTN4CA)
          Go Big Orange

          Comment


            #6
            Wine is not for console applications.

            If you have PBDOS and DOS itself, use that compiler and run the .exe under dosemu.
            Erich Schulman (KT4VOL/KTN4CA)
            Go Big Orange

            Comment


              #7
              As i have read, you can do this with php also.
              p purvis

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎