LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2005, 03:20 AM   #1
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
Location for script data storage


I have a script which gets run by cron to check my cable modem's IP address, and email me if it changes.

So, inbetween hourly invocations, I need to store the last IP I got to check against next time.

What's the best location to store something like that? Probably not /tmp, because it's not really a "temp" file, and that location may be cleaned on reboot. There's also /var/run where some daemons seem to store their pids, but my script isn't really running between invocations.

Thanks
 
Old 10-15-2005, 09:55 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Maybe /opt/myscript or /etc/sysconfig. It's really up to you.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Common Data Storage Woodsman Slackware 1 10-30-2005 10:00 PM
Data Storage Question nodger Programming 5 09-01-2005 05:42 PM
data storage in applications dave bean Programming 3 01-18-2005 05:39 PM
Location of mail storage once the quota has reached the limit jomy Linux - Enterprise 0 01-10-2005 07:09 AM
Data storage of LDAP? grubjo Linux - General 1 09-03-2004 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration