LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-08-2007, 12:44 PM   #1
combatseabee
LQ Newbie
 
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17

Rep: Reputation: 0
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
 
Old 10-08-2007, 12:49 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 10-08-2007, 01:08 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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
 
Old 10-08-2007, 01:27 PM   #4
combatseabee
LQ Newbie
 
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 10-08-2007, 01:47 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
IS this a part of the same issue?

Let me ask: 'Do these power surges occur at regularly scheduled intervals?'
 
Old 10-08-2007, 01:52 PM   #6
combatseabee
LQ Newbie
 
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17

Original Poster
Rep: Reputation: 0
Power Surges

Yes this is part of the same isssue, they happen unexpectedly.
 
Old 10-08-2007, 03:44 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 10-08-2007, 04:01 PM   #8
combatseabee
LQ Newbie
 
Registered: Nov 2004
Location: New England
Distribution: Fedora Core 9
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 10-08-2007, 04:14 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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?
 
Old 10-08-2007, 04:16 PM   #10
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
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.
 
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 09:07 PM
Urgent Help Please TheCondor389 Linux - Hardware 7 12-28-2004 09:48 AM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 11:19 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 03:22 AM


All times are GMT -5. The time now is 03:15 AM.

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