LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-15-2003, 10:25 AM   #1
tristanbob
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
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

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

2)
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.
hth
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:33 PM.

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