Linux Service

Hi,

I want to write a service like windows service for my rhel4u5 server.And this service every day at 4:00 am connect a ftp server and download file then parse information at txt file then insert or update info at my database server(oracle).and this service can be stopped or paused by user.And which program(perl,c,c++,shell script,java) can be used this service.And what is the key word at google for searching code or doc.

Thank you

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.