Linux c app, called remotely by web.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Francesco

    #1

    Linux c app, called remotely by web.

    hi, i'm not english so excuse me for the grammatical/sintax errors..

    i'm relly going crazy looking for that...
    i need an example code or something that could help me to create an
    very simpe c application that have to do this:

    run on a linux server like a daemon and manage variables printing out
    the value.. for example...

    the appz code:
    // $n1 (passed var by browser)
    if(!$sum) $sum =0;
    $sum = $sum + $n1;
    print $sum;

    ############### #####

    so if you wrote in the browser

    http://www.site.com:8000/appz.dll?n1=5
    you get back
    5

    than someone in internet do
    http://www.site.com:8000/appz.dll?n1=2
    he get back 7

    and again if someone else then type
    http://www.site.com:8000/appz.dll?n1=5
    he get back 12

    (yes i know that if i restart computer the count start again from 0..
    i'll save the variable every 1 minutes on a file)

    and more....
    i'm very interested to know if this is possible... without using apache
    wich is very slow...
    the program should handle millions of request/day... and usually i
    should use apache+php+file (or)mysql to do this operation...
    and requires a lot of resources at every hits....
    i think that this program stored on a ramdisk partition could do the
    things really faster..


    if someone could help me you make me really happy..
    Thanks,
    Francesco

  • Vladimir S. Oka

    #2
    Re: Linux c app, called remotely by web.

    Francesco wrote:
    [color=blue]
    > hi, i'm not english so excuse me for the grammatical/sintax errors..[/color]

    Grammatical errors are OK, syntax ones (at least in C) are not. ;-)
    [color=blue]
    >
    > i'm relly going crazy looking for that...
    > i need an example code or something that could help me to create an
    > very simpe c application that have to do this:
    >
    > run on a linux server like a daemon and manage variables printing out
    > the value.. for example...[/color]

    You should go to comp.unix.progr amming or any of the groups with `linux`
    in their name. Here, only standard ISO/ANSI C is discussed, and there
    are no such things as servers, daemons or linux in it.

    Cheers

    Vladimir

    <snipped the rest of the problem description>


    --
    As far as the laws of mathematics refer to reality, they are not
    certain, and as far as they are certain, they do not refer to reality.
    -- Albert Einstein

    Comment

    • Francesco

      #3
      Re: Linux c app, called remotely by web.

      k thanks!

      Comment

      • Vladimir S. Oka

        #4
        Re: Linux c app, called remotely by web.

        Francesco wrote:
        [color=blue]
        > k thanks![/color]

        Who's `k`? Thanks for what?

        Please quote what you're replying to, otherwise many people won't know
        what you're on about (see instructions below). For example, /I/ haven't
        seen /my own/ post yet, so I'm just assuming you're thanking me...

        Also, people around here (myself included) tend to frown on text-speak.

        Cheers

        Vladimir

        "If you want to post a followup via groups.google.c om, don't use
        the broken "Reply" link at the bottom of the article. Click on
        "show options" at the top of the article, then click on the
        "Reply" at the bottom of the article headers." - Keith Thompson
        More details at: <http://cfaj.freeshell. org/google/>

        --
        Brook's Law:
        Adding manpower to a late software project makes it later

        Comment

        • Vladimir S. Oka

          #5
          Re: Linux c app, called remotely by web.

          Vladimir S. Oka wrote:
          [color=blue]
          > Francesco wrote:
          >[color=green]
          >> k thanks![/color]
          >
          > Who's `k`? Thanks for what?
          >
          > Please quote what you're replying to, otherwise many people won't know
          > what you're on about (see instructions below). For example, /I/
          > haven't seen /my own/ post yet, so I'm just assuming you're thanking
          > me...[/color]

          And as my fine ISP is playing its little tricks on me _again_, I think I
          may never see that post -- ever... :-(

          Cheers

          --
          "Of course power tools and alcohol don't mix. Everyone knows power
          tools aren't soluble in alcohol ..."
          -- Crazy Nigel

          Comment

          • Francesco

            #6
            Re: Linux c app, called remotely by web.

            sorry, i'm not abitual groups user....
            thanks stand for "thanks for the tips, i have posted the message on
            linux programming group :) "

            Have a nice day...

            Comment

            • Ico

              #7
              Re: Linux c app, called remotely by web.

              Vladimir S. Oka <novine@btopenw orld.com> wrote:[color=blue]
              >
              > And as my fine ISP is playing its little tricks on me _again_, I think I
              > may never see that post -- ever... :-([/color]

              Check your reader settings, you might have plonked yourself. This
              happened to me once, and it took me a quite some time to figure out what
              was wrong.

              Ico


              --
              :wq
              ^X^Cy^K^X^C^C^C ^C

              Comment

              • Nelu

                #8
                Re: Linux c app, called remotely by web.

                Francesco wrote:[color=blue]
                > sorry, i'm not abitual groups user....
                > thanks stand for "thanks for the tips, i have posted the message on
                > linux programming group :) "
                >
                > Have a nice day...
                >[/color]
                You are very welcome! Who are you thanking to? And for what?
                Please quote some context the next time you reply to something.
                Usenet is not for private messages.

                --
                Ioan - Ciprian Tandau
                tandau _at_ freeshell _dot_ org (hope it's not too late)
                (... and that it still works...)

                Comment

                • Vladimir S. Oka

                  #9
                  Re: Linux c app, called remotely by web.

                  Ico wrote:
                  [color=blue]
                  > Vladimir S. Oka <novine@btopenw orld.com> wrote:[color=green]
                  >>
                  >> And as my fine ISP is playing its little tricks on me _again_, I
                  >> think I may never see that post -- ever... :-([/color]
                  >
                  > Check your reader settings, you might have plonked yourself. This
                  > happened to me once, and it took me a quite some time to figure out
                  > what was wrong.
                  >[/color]

                  Thanks for the advice, I'll have a look.

                  Although I don't think that's the problem. It's only roughly one in five
                  or so own posts that I can't see. Anyway, I'm getting used to it :-(,
                  and am keeping them in my outbox, just in case I have to reply to
                  someone with no quoting habits.

                  Cheers

                  Vladimir

                  --
                  Try to be the best of whatever you are, even if what you are is no
                  good.

                  Comment

                  • Michael Rasmussen

                    #10
                    Re: Linux c app, called remotely by web.

                    On Sat, 28 Jan 2006 09:59:37 +0000, Vladimir S. Oka wrote:
                    [color=blue]
                    > Although I don't think that's the problem. It's only roughly one in five
                    > or so own posts that I can't see. Anyway, I'm getting used to it :-(, and
                    > am keeping them in my outbox, just in case I have to reply to someone with
                    > no quoting habits.[/color]
                    What news reader do you use? Or are you posting via email?
                    --
                    Hilsen/Regards
                    Michael Rasmussen


                    Comment

                    • Vladimir S. Oka

                      #11
                      Re: Linux c app, called remotely by web.

                      Michael Rasmussen wrote:
                      [color=blue]
                      > On Sat, 28 Jan 2006 09:59:37 +0000, Vladimir S. Oka wrote:
                      >[color=green]
                      >> Although I don't think that's the problem. It's only roughly one in
                      >> five or so own posts that I can't see. Anyway, I'm getting used to it
                      >> :-(, and am keeping them in my outbox, just in case I have to reply
                      >> to someone with no quoting habits.[/color]
                      > What news reader do you use? Or are you posting via email?[/color]

                      KNode 0.9.2 (KDE 3.4.2 on SUSE 10.0 box).

                      If the question is about me saying `outbox`, I actually meant `Sent`
                      folder in KNode's `Local Folders` which is where everything that I post
                      ends up.

                      Cheers

                      Vladimir

                      --
                      Ask not for whom the <CONTROL-G> tolls.

                      Comment

                      • Michael Rasmussen

                        #12
                        Re: Linux c app, called remotely by web.

                        On Sat, 28 Jan 2006 12:14:20 +0000, Vladimir S. Oka wrote:
                        [color=blue]
                        >
                        > KNode 0.9.2 (KDE 3.4.2 on SUSE 10.0 box).[/color]
                        I have not heard of any such problems with KNode. Have you filed it as a
                        bug?
                        --
                        Hilsen/Regards
                        Michael Rasmussen


                        Comment

                        • Vladimir S. Oka

                          #13
                          [OT] Problems with posting (was Re: Linux c app, called remotely by web.)

                          Michael Rasmussen wrote:
                          [color=blue]
                          > On Sat, 28 Jan 2006 12:14:20 +0000, Vladimir S. Oka wrote:
                          >[color=green]
                          >>
                          >> KNode 0.9.2 (KDE 3.4.2 on SUSE 10.0 box).[/color]
                          > I have not heard of any such problems with KNode. Have you filed it as
                          > a bug?[/color]

                          I don't actually think the problem's with KNode. Here's what actually
                          happens:

                          I post a follow-up to an article on c.l.c using my ISP's news server.
                          Most of the time I see it on c.l.c in due time on my ISP's news server.
                          Sometimes, however, I never see it on c.l.c on my ISP's news servers.
                          However, it's /always/ visible on Google Groups, or if I subscribe to
                          c.l.c using a different news servers (say, one of the free ones).
                          All the while I'm using same news client, i.e. KNode.

                          I'll drop it here now, as it's off topic. Any suggestions where's the
                          best place to ask (apart for bugging my ISP, of course).

                          Cheers

                          Vladimir


                          Comment

                          • Michael Rasmussen

                            #14
                            Re: [OT] Problems with posting (was Re: Linux c app, called remotely by web.)

                            On Sat, 28 Jan 2006 13:34:00 +0000, Vladimir S. Oka wrote:
                            [color=blue]
                            > Michael Rasmussen wrote:
                            >[color=green]
                            >> On Sat, 28 Jan 2006 12:14:20 +0000, Vladimir S. Oka wrote:
                            >>
                            >>[color=darkred]
                            >>> KNode 0.9.2 (KDE 3.4.2 on SUSE 10.0 box).[/color]
                            >> I have not heard of any such problems with KNode. Have you filed it as a
                            >> bug?[/color]
                            >
                            > I don't actually think the problem's with KNode. Here's what actually
                            > happens:
                            >
                            > I post a follow-up to an article on c.l.c using my ISP's news server. Most
                            > of the time I see it on c.l.c in due time on my ISP's news server.
                            > Sometimes, however, I never see it on c.l.c on my ISP's news servers.
                            > However, it's /always/ visible on Google Groups, or if I subscribe to
                            > c.l.c using a different news servers (say, one of the free ones). All the
                            > while I'm using same news client, i.e. KNode.
                            >[/color]
                            Try see if the problems occurs in another news reader. If not[color=blue]
                            > I'll drop it here now, as it's off topic. Any suggestions where's the best
                            > place to ask (apart for bugging my ISP, of course).[/color]
                            Try KDE mail lists.
                            --
                            Hilsen/Regards
                            Michael Rasmussen


                            Comment

                            • CBFalconer

                              #15
                              Re: [OT] Problems with posting (was Re: Linux c app, called remotely byweb.)

                              "Vladimir S. Oka" wrote:[color=blue]
                              >
                              > I don't actually think the problem's with KNode. Here's what
                              > actually happens:
                              >
                              > I post a follow-up to an article on c.l.c using my ISP's news
                              > server. Most of the time I see it on c.l.c in due time on my
                              > ISP's news server. Sometimes, however, I never see it on c.l.c
                              > on my ISP's news servers. However, it's /always/ visible on
                              > Google Groups, or if I subscribe to c.l.c using a different
                              > news servers (say, one of the free ones). All the while I'm
                              > using same news client, i.e. KNode.
                              >
                              > I'll drop it here now, as it's off topic. Any suggestions
                              > where's the best place to ask (apart for bugging my ISP, of
                              > course).[/color]

                              Bugging your ISP is probably the only way. It looks as if he is
                              failing to post articles originating on his system. When he
                              propagates them to other systems they are marked as "SEEN-BY" his
                              system, so they don't come back.

                              --
                              "The power of the Executive to cast a man into prison without
                              formulating any charge known to the law, and particularly to
                              deny him the judgement of his peers, is in the highest degree
                              odious and is the foundation of all totalitarian government
                              whether Nazi or Communist." -- W. Churchill, Nov 21, 1943


                              Comment

                              Working...