Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to keep program running 24/7 without my computer being on?
Forum Update on Monday, May 27th 2025

How to keep program running 24/7 without my computer being on?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tjudg
    wrote on 3 Jan 2017, 11:34 last edited by
    #1

    Hey guys, I have written a server and client using Qt. The server does web scraping from multiple websites and parses the data and uploads it to my website through ftp. The client gets the data from my website, parses it and posts information onto a widget.

    All of it works but I have to keep my computer on 24/7 for the server to stay running. What I want to know is how do I make my program run 24/7 without my computer on? Do I need like a server to keep my program on? I've never done anything like this before so I have no idea what I need to make this work.

    R V 2 Replies Last reply 3 Jan 2017, 11:39
    0
    • T tjudg
      3 Jan 2017, 11:34

      Hey guys, I have written a server and client using Qt. The server does web scraping from multiple websites and parses the data and uploads it to my website through ftp. The client gets the data from my website, parses it and posts information onto a widget.

      All of it works but I have to keep my computer on 24/7 for the server to stay running. What I want to know is how do I make my program run 24/7 without my computer on? Do I need like a server to keep my program on? I've never done anything like this before so I have no idea what I need to make this work.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 3 Jan 2017, 11:39 last edited by
      #2

      @tjudg said in How to keep program running 24/7 without my computer being on?:

      What I want to know is how do I make my program run 24/7 without my computer on?

      :D
      Of course the machine (server) running an application needs to be running.
      Get some little device like the RaspberryPi which uses way less power than a desktop machine, and let it up and running 24/7 acting as the server.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • T tjudg
        3 Jan 2017, 11:34

        Hey guys, I have written a server and client using Qt. The server does web scraping from multiple websites and parses the data and uploads it to my website through ftp. The client gets the data from my website, parses it and posts information onto a widget.

        All of it works but I have to keep my computer on 24/7 for the server to stay running. What I want to know is how do I make my program run 24/7 without my computer on? Do I need like a server to keep my program on? I've never done anything like this before so I have no idea what I need to make this work.

        V Offline
        V Offline
        VRonin
        wrote on 3 Jan 2017, 11:42 last edited by
        #3

        @tjudg said in How to keep program running 24/7 without my computer being on?:

        uploads it to my website

        Since you already have a website, sometimes web hosts allow to run application on the web server, you'll probably be bound in how much CPU and RAM you can use though, check the features of the server you already have

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1
        • R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 3 Jan 2017, 11:47 last edited by raven-worx 1 Mar 2017, 11:53
          #4

          to add up to @VRonin i would read the Terms and conditions of the webhoster before doing this.
          Normally this is handled with the Fair-Use policy, which means the webhost can decide at any point to stop it when he thinks that you are influence other users and there are no defined limits.
          This is mostly the case on (commonly used) shared webhosts, where you share the physical machine with other users.

          Edit: actually this can already happen to you now. Depending on the load of data you are uploading to the webserver (24/7).

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 3 Jan 2017, 21:28 last edited by
            #5

            Hi,

            To add to my fellow, you might also want to consider consider a service like Heroku or an AWS instance.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            1/5

            3 Jan 2017, 11:34

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved