Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-08-2007, 12:44 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17
Rep:
|
Urgent
Hello,
I have a problem with my server not transferring all cash office files whenever there is a power surge. I am asking in general how I would fix this problem with cron. Would that be the right approach to make sure that everytime there is a power surge that all the files that are supposed to transfer are tranferring????
Please help ...
Laura
|
|
|
10-08-2007, 12:49 PM
|
#2
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
Hi Laura.
That title you have chosen for your thread ("Urgent"), has NOTHING to do with the content of your thread. Therefore, the people who actually know how to help you, probably won't peek in to see if they can help or not.
Please locate the LQ posting rules and give them a quick scan. Perhaps hitting the REPORT button on your post, and kindly asking a moderator to rename your thread appropriately, will help.
Meanwhile, CRON does not sound like the solution you are looking for.
--Sasha
PS - look here: http://www.linuxquestions.org/questi...osting-356388/
Last edited by GrapefruiTgirl; 10-08-2007 at 12:54 PM.
|
|
|
10-08-2007, 01:08 PM
|
#3
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Not my area of expertise, but it seems you need the output signal from a UPS to trigger some action. (Otherwise, how would the SW know there had been a power surge?)
You might try searching Google on UPS software
|
|
|
10-08-2007, 01:27 PM
|
#4
|
LQ Newbie
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17
Original Poster
Rep:
|
Thanks for the advice,
What I need to do is write a script. Something with find *xxx.n where n is the Julian date and the date to be equal to date.
|
|
|
10-08-2007, 01:47 PM
|
#5
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
IS this a part of the same issue?
Let me ask: 'Do these power surges occur at regularly scheduled intervals?'
|
|
|
10-08-2007, 01:52 PM
|
#6
|
LQ Newbie
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17
Original Poster
Rep:
|
Power Surges
Yes this is part of the same isssue, they happen unexpectedly.
|
|
|
10-08-2007, 03:44 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
You might need to write a script for the re-transmission; however, the issue really
is the power. I'm with Pixellanny on that one - get a UPS, and make sure it's one
that the relevant Linux tools know about ...
http://freshmeat.net/search/?q=UPS&s...&Go.x=0&Go.y=0
Cheers,
Tink
|
|
|
10-08-2007, 04:01 PM
|
#8
|
LQ Newbie
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17
Original Poster
Rep:
|
Not Power Surge
Hi,
I'm thinking that it is not a power surge. Now I am finding out that it happens unexpectedly and it is not a total loss of power. She said the computer reboots ... ahhhhh, so I knew when she said that, we were talking about sending updates. So, this probably happens when we send updates and the server reboots. Files are transferring and immediately stop and are lost during the transfer so the transfer never finishes. When they go in to grab the files to print out a report they are not there.
|
|
|
10-08-2007, 04:14 PM
|
#9
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
Hmm..
Transferring these files should be a three step process, atleast:
1 - COPY the files over.
2 - VERIFY the files are copied.
3 - Remove the originals if required.
That way, if the system crashes, you just need to restart the copy process over.
If the system is crashing under load, and doing so on a regular basis, it sounds like bad hardware, specifically the power supply.
OR:
Are we saying here that:
a) files are being transferred all the time, at any given time, whenever they need to be transferred,
AND:
b) sometimes, updates get sent to the machine, after which the machine automatically reboots, thereby interrupting the transfer?
If this is the case, there are (two) things to do:
1) schedule updates for a certain time, and during this time, don't transfer any files.
and/or:
2) schedule the file transfers for a certain time, and don't update anything during this process.
Is this getting anywhere?
|
|
|
10-08-2007, 04:16 PM
|
#10
|
Member
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503
Rep:
|
you probally should have thoes updates happening at some time that nobody is using the machine if a reboot is involved. Prehaps 3am?
Also, VERY few linux updates actually require a reboot. I typically only reboot if I change the kernel.
|
|
|
All times are GMT -5. The time now is 06:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|