# Web Server-Side programming

**URL:** <https://forum.xojo.com/t/web-server-side-programming/9634>\
**Category:** Web\
**Created:** [July 18, 2013, 6:12am UTC](https://forum.xojo.com/t/web-server-side-programming/9634 "2013-07-18T06:12:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonis\_Vakondios](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Antonis\_Vakondios](https://forum.xojo.com/u/Antonis_Vakondios)\
**Post date:** [July 18, 2013, 6:12am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/1 "2013-07-18T06:12:55Z")

</div>

Hi,  
For example, I will need to execute every 5 hours a database backup or a database maintenance OR to move/edit some local files stored on web server or whatever execution on web server but in scheduling. My question is the following : On which component, we can write a Server-Side code to execute and schedule tasks ? How they will start ? Can they start, with the APP.Open Event ? How I can put a timer there for schedule tasks ? Can these tasks to execute asynchronous and on different thread for the rest of web server’s activities ? I am thinking to store on Sqlite, the results of tasks, so if the server restart, to have a point from where to restart these tasks.

Thanks for your time,  
Antonis

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [July 18, 2013, 6:17am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/2 "2013-07-18T06:17:39Z")

</div>

It would be better to use the scheduling capabilities of the OS, such as cron.

---

<div class="post-metadata">

**Author:** ![Antonis\_Vakondios](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Antonis\_Vakondios](https://forum.xojo.com/u/Antonis_Vakondios)\
**Post date:** [July 18, 2013, 6:39am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/3 "2013-07-18T06:39:00Z")

</div>

Why ? Xojo does not supports to have server side programming ? Reading from documentation, I am not sure and this is the reason that I am asking …

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [July 18, 2013, 6:43am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/4 "2013-07-18T06:43:19Z")

</div>

You can’t write a better scheduler than the OS did. If your app crashes for some reason, your schedule doesn’t run. That isn’t an issue with the OS. Yes, you can do everything you listed. But why? Instead, write the console apps (or shell scripts) to do what you need and schedule them with the OS.

Just my 2 cents.

---

<div class="post-metadata">

**Author:** ![Antonis\_Vakondios](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Antonis\_Vakondios](https://forum.xojo.com/u/Antonis_Vakondios)\
**Post date:** [July 18, 2013, 6:59am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/5 "2013-07-18T06:59:50Z")

</div>

Tim,

I am thinking as a customer with bad computerize knowledge on computer support. All the customers want one system to do everything. They dont want to have linux experts to check the Crons, etc. They want from us, One System, to have the good reporting about the status of the system. This is the reason that I am re-asking, if all of these are possible to programming through Web Xojo. Except from timer object, there is any other way to execute scheduling ?

---

<div class="post-metadata">

**Author:** ![Antonis\_Vakondios](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Antonis\_Vakondios](https://forum.xojo.com/u/Antonis_Vakondios)\
**Post date:** [July 18, 2013, 7:04am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/6 "2013-07-18T07:04:57Z")

</div>

I am doing a product evaluation for web database solutions tools, on this period. I had a bad experience with some other product (Wakanda) and I dont want to lose more time on development before to be sure that the tool is working for the promising functionality.

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [July 18, 2013, 7:06am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/7 "2013-07-18T07:06:01Z")

</div>

Yes it is all possible with Xojo. In fact, I have written a scheduler for other reasons. I just wanted to point out that it isn’t the best practices approach.

There are 2 ways.

1. Use a Timer
2. Use a Thread that sleeps until the next scheduled event.

I use a Timer.

---

<div class="post-metadata">

**Author:** ![Brad\_Hutchings](https://forum.xojo.com/user_avatar/forum.xojo.com/brad_hutchings/32/143_2.png) [@Brad\_Hutchings](https://forum.xojo.com/u/Brad_Hutchings)\
**Post date:** [July 18, 2013, 7:48am UTC](https://forum.xojo.com/t/web-server-side-programming/9634/8 "2013-07-18T07:48:28Z")

</div>

I agree with Tim. Your work to make things more user friendly would be better directed at putting a pretty face around the standard OS facilities than implementing your own in-app. Just my 2 cents.

---

<div class="post-metadata">

**Author:** ![Dean\_Davidge](https://forum.xojo.com/user_avatar/forum.xojo.com/dean_davidge/32/244_2.png) [@Dean\_Davidge](https://forum.xojo.com/u/Dean_Davidge)\
**Post date:** [July 26, 2013, 4:41pm UTC](https://forum.xojo.com/t/web-server-side-programming/9634/9 "2013-07-26T16:41:36Z")

</div>

Why not use Xojo to maintain the crontab file?

---

<div class="post-metadata">

**Author:** ![Antonis\_Vakondios](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Antonis\_Vakondios](https://forum.xojo.com/u/Antonis_Vakondios)\
**Post date:** [July 29, 2013, 10:23pm UTC](https://forum.xojo.com/t/web-server-side-programming/9634/10 "2013-07-29T22:23:11Z")

</div>

Thanks for your responses. I will use crontab to call a xojo shell application.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:45pm UTC](https://forum.xojo.com/t/web-server-side-programming/9634/11 "2020-10-29T16:45:30Z")

</div>


