Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2003, 10:25 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Question How should I create an install script for my project (SaraB)

I am creating a script called SaraB that automatically runs a backup program and rotates the backups. (You can find the SaraB project on SourceForge)

I have several questions about what my install script should do. Here are the questions…

1) Where should I move the program files to? /usr/local/sarab/

2) Should I automatically add a cron entry, or just instruct the user to add it?

3) If my script should add it, what is the best method? Manually edit the crontab file via the script, use the “crontab” command to edit the crontab for root, or stick it in a cron.daily directory (do all distributions have this?)

4) If I place it in cron.daily, I don’t want it to run the same time as all other maintenance processes. I was thinking about using the “sleep” command to wait for a time (perhaps an hour?) before starting the backup. Is this a good idea?

If my install script is creating the cron entry, there will be settings in the .conf file for the user to choose the frequency and time.

If you have any comments, please let me know. I can provide more information about the project if needed. I am still developing the website for the project.

Tristan Rhodes
Old 10-15-2003, 11:20 AM   #2
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
wherever you want to - you should let the user decide that. /usr/local/sarab is a good idea

instruct the user to. Some people don't like others fiddling with their crontab

As for the rest, that can all be set in the crontab entries. use the "crontab" command, and then you can easily set what runs when.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Summer Project: Create keylogger MDBlueIce Programming 7 07-20-2005 08:08 AM
eclipse + CDT : how can i create a project which includes multi main( ) tclwp Programming 4 02-11-2005 08:27 AM
create GNU make Makefile from visualstudio project andreyk Programming 0 02-02-2005 10:25 AM
CVS: How to create a new project? prell Programming 2 10-18-2004 11:54 PM
project management script ashley7 Programming 0 09-10-2003 11:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration