Sponsored Content
Full Discussion: Linux Service
Top Forums Programming Linux Service Post 302251802 by redoubtable on Tuesday 28th of October 2008 05:55:53 AM
Old 10-28-2008
The service/daemon process is very simple. Call daemon() then do_something() and sleep(). You could create a very simple program/script (any language will serve that purpose) that starts by calling daemon() then sleeps until 4am and then parses the file and sleeps again. Alternatively you could just create a simple script that strictly parses the file and updates info on the database and add that script to crond/crontab.

Search google for "perl oracle" and come back when you have a script that does what you want so we can help you put it on crontab.
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Writing a service in Linux

Hi All: I want to write a program that runs like a service(in the background) and should start up when the system boots. It should always be running, no matter who has logged in, no matter if anybody has logged in et all. Is there any online help i could get on this topic, appreciate the help... (4 Replies)
Discussion started by: preetham
4 Replies

2. Linux

Configure SMTP service in linux 5.2

Hi All, How to configure SMTP service in linux 5.2? Please provide me the steps. Thanks Jack (5 Replies)
Discussion started by: jack00423
5 Replies

3. Linux

Important Service Linux

Hi there; I need to know all the things about services which help my Linux OS running. So what're important services of LINUX OS ? Anyone can help me... Tks all ? (1 Reply)
Discussion started by: quan0509
1 Replies

4. IP Networking

how to install ssh service in linux

hello,I am new in linux and want to know how to install ssh service in my computer so that others can connect to it,thank you! (15 Replies)
Discussion started by: hwk07
15 Replies

5. Homework & Coursework Questions

linux service script for storing uptime

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Can you please advise a script for the following: write linux service named system_up_duration .This service... (6 Replies)
Discussion started by: fed.linuxgossip
6 Replies

6. What is on Your Mind?

Linux Hosting Service Recommendation

We've been using Linode for our virtual Linux hosting services for two years now and could not be more impressed. One of our Linode nodes is located in Cedar Knolls, New Jersey which was close to the path of Hurricane Sandy. The data center teams were on top of things from the beginning... (0 Replies)
Discussion started by: Neo
0 Replies

7. Linux

How to check a particular service is running on Linux?

We are using TeamSite application. Its a content management system application. How can I check if TeamSite service is running or not using ksh onn Linux platform ? On Windows its easy, I can do services.msc and entire list will come up. How to check it in Linux ? I tried using 'ps -ef', it... (4 Replies)
Discussion started by: paramshamnani
4 Replies

8. Linux

How to configure FTPS service on Linux 7.2?

Hey Guys, I need to know , how to configure the FTPS service on Linux 7.2 OS. Please advise. Thanks (0 Replies)
Discussion started by: anil1000
0 Replies
TORRUS_MONITOR(8)						      torrus							 TORRUS_MONITOR(8)

NAME
monitor - Torrus Monitor. SYNOPSIS
torrus monitor --tree=TREENAME [options...] DESCRIPTION
This command starts the Monitor process for the tree TREENAME. By default it forks into a daemon, sets the log output file to /var/log/torrus/monitor.TREENAME.log, performs one monitoring cycle, and sleeps until the next cycle is scheduled. In daemon mode the log file can be reopened by sending it a SIGHUP signal. OPTIONS
--nodaemon Prevents the process from becoming a daemon and sets the log to STDERR. --runonce Instructs the script to run once and exit. Implies --nodaemon. --delay=N Makes the daemon sleep for N minutes before starting the first cycle. This would happen on the daemon startup and also after each configuration recompilation. For example, when monitor and collector start simultaneously, the collector needs some time to retrieve the data being monitored. --debug Sets the log level to debug. --verbose Sets the debug level to info. --help Displays a help message. FILES
/etc/torrus/conf/torrus-siteconfig.pl Torrus site configuration script. /var/log/torrus/monitor.TREENAME.log Monitor's log for the tree TREENAME. SEE ALSO
torrus(8) NOTES
See more documentation at Torrus home page: http://torrus.org AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com> torrus 2.03 2013-07-26 TORRUS_MONITOR(8)
All times are GMT -4. The time now is 12:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy