General :: Cron - Schedule A Service To Run In A Time Period

Mar 2, 2010

i want a service to be start at 8:00 and be ended in 14:00 automatically i already do this manualy by:

/etc/init.d/myservice.sh start
/etc/init.d/myservice.sh stop

i think it should be related to cron jobs.

View 1 Replies


ADVERTISEMENT

General :: How To Schedule Job Using Cron That Shouldn't Run Between Working Hrs?

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week.I tried the following way, not sure I can use logical not operator(!).

View 3 Replies View Related

General :: Calculate Time Period In Scripting

Mar 16, 2011

Now i am writting one bash script. in that my requirement is i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file. after that i need to delete the folder automatically exactly after 3months. between these time period in 2month itself i need to send one mail to admin "regarding this still one month only more to delete the folder" . is it possible to do like that date calculation in script.

View 10 Replies View Related

General :: CPU/RAM Usage Log Over A Period Of Time To File On CentOS

Jun 7, 2010

Im looking for an app pr line of code that could let me observe a process, save the info in a number of variable and then put the gathered info on a file.

Ive been trying with variations of top but no luck. I am running several CentOS virtual servers, VM is 2gb ram 2 processor.

Maybe a script that works over a specified amount of time while writing lines with the info on a text file so at the end i can have a sort of table with the data.

The thing is Im going to stress test the server and I would like to have the data to make some statistics.

View 2 Replies View Related

Red Hat / Fedora :: How To Schedule A Cron Job

Feb 28, 2010

I would like to schedule a cron job to run on every first saturday of the month, so far all documentation that I have looked at, mentions only a weekly cron or a monthly cron based on the date. Is it possible to run a monthly cron based on the day of the week?

View 1 Replies View Related

Red Hat / Fedora :: How To Schedule Job Using Cron

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week. I tried the following way, not sure I can use logical not operator(!).

crontab -e
0 !9-17 * * * /path/to/script/file
I guess other way is
0 17-8 * * * /path/to/script/file

View 1 Replies View Related

Ubuntu :: Use Cron To Schedule A Script Wrote?

Nov 28, 2010

I'm trying to use cron to schedule a script I wrote.in the terminal I'm typing sudo cronbut i get this message back.cron: can't lock /var/run/crond.pid, otherpid may be 3332: Resource temporarily unavailablewhat's going on here? how can I schedule my script to run?

View 2 Replies View Related

Ubuntu :: Cron Not Working - Attempting To Schedule A Task To Run Every Hour?

Oct 1, 2010

I am attempting to schedule a task to run every hour. I have altered the crontabs for my account but the the task still won't run on the hour.

View 1 Replies View Related

General :: Cron And Oracle Service Stopped Unexpectedly - Cannot Restart

May 5, 2010

I am running Fedora 11 with an Oracle 11g database installed. I came to check on it and found out that the oracle service had stopped. I also have a script that gets run by cron every minute. I noticed that the last entry in the log /var/log/cron was March 24 at 4:26. Which was really close (not exactly to the second but within a few minutes) of the last log entry in the database translator logs (the database was processing data and it outputs a log).

I rebooted the machine and cron started running again, but I can't get the oracle service to start again. Normally it runs at startup, but if I need to run it or check it, I use:
Code: /sbin/service oracle restart
Is there another log that I could look at to see what would be the cause of the stoppage? How to get the oracle service started again?

View 6 Replies View Related

Ubuntu :: Freezes After A Period Of Inactive Time?

Dec 16, 2010

I installed ubuntu 10.0.4 TLS version and my desktop freezes after a period of inactive time: the screen doesn't change and the apps do not response. It will resume after any key-stroke or mouse action. Is it a feature of 'power-saving' or something else? I need my ubuntu keep 'alive' all the time.

View 2 Replies View Related

Fedora :: Reinstallation - Display Does Not Shut Off After A Certain Period Of Time

Feb 28, 2010

I just reinstalled, and can't get the setting set right so that my display does not shut off after a certain period of time. It is shutting off after a while of inactivity, and I do not want it to.

View 2 Replies View Related

Fedora :: Auto Hibernate After Suspending For A Period Of Time

Jul 18, 2011

I currently have fedora 15 installed along side windows 7 on my acer aspire d250. So far it runs great, however I was wondering if there is a way to make fedora 15 hibernate after being in suspend for a period of time, just like windows 7 does. This make sense to me as there is no point in wasting battery life if i can hibernate, but I don't want to hibernate all the time, just suspend for a period of time, like 2 hours, in case I need my netbook again i have quick access to it.

View 2 Replies View Related

OpenSUSE Network :: Block A Site For A Certain Time Period?

Dec 6, 2010

I'm trying to block a site for a certain time.How to Block(deny) perticuler website in certain times of the day , by using squid ? and it seemed promising.I added the lines to my squid.conf

acl office_time time MTWHF 3:00-21:00
acl bad url_regex "/etc/squid/block.acl
http_access deny bad !office_time

created a block.acl in the same directory and restarted it.

View 2 Replies View Related

Server :: Unblock The Sites For A Particular Period Of Time Through Proxy?

May 24, 2011

We are using Red Hat linux 4 .We blocked certain sites through squid for certain ip address.we want to unblock these sites in particular interval ,ie during noon time and after 4.00 pm.

Here we have given

In the sites.txt we have given the names the of those sites that should be blocked

The problem is to unblock sites in sites.txt, for particular intervals

View 3 Replies View Related

OpenSUSE :: How To Configure For Computer Auto Shutdown After A Period Of Time

May 2, 2011

I install Opensuse 11.4 on KDE environment then I changed to XFCE. I don't know how to configure for computer auto shutdown after a period of time don't use it.

View 6 Replies View Related

OpenSUSE Network :: Internet Connection Dies After A Period Of Time

Feb 22, 2011

I am having some trouble with my opensuse 11.3 internet connection for two weeks. After a certain period connection drops while using both NetworkManager and ifup. For info, I write the outputs of some codes.

[Code]...

View 2 Replies View Related

Hardware :: External Hard Drive Inaccessible After Period Of Time

Mar 3, 2010

I am running Karmic on my laptop, and I have three 1.5 TB external hard drives which I swap between frequently. My problem is that if I leave the drives in, and do not access them for a period of time, they become inaccessible, i.e. I will click on the icon on the desktop or in Places, and it will tell me there is no device mounted, even though I was using it fine just an hour before.

i have a feeling that it is because the USB drives spin down after a period, and Ubuntu detects them as being 'disconnected'. Would it help if I added individual entries for each in fstab?? Or do I need to adjust some settings elsewhere?

EDIT: If this information helps, the HD's are all Seagate Expansion drives, formatted to ext4.

View 5 Replies View Related

OpenSUSE Hardware :: Nvidia Driver - Power Went Out For Extended Period Of Time

Apr 23, 2011

My power went out for an extended period of time and now my graphics are messed up. I started my computer up and I only can get 640x480, so I was trying to reinstall the drivers but the nvidia drivers on the repositroy do not make sense as far as what goes with what, or descriptions of them. I downloaded the driver off nvidias website instaled it. It went to my desktop same problem.

View 9 Replies View Related

Ubuntu :: Instability In Karmic \ Lock Up Every Time It Had A Period Of Extended Inactivity?

Jan 21, 2010

I skipped over Jaunty on my main desktop because Intrepid had been working perfectly for so long. Finally took the plunge to Karmic, and have had major instability problems. I cannot trace them to any particular program I am using. At first it seemed related to power management, since it would lock up every time it had a period of extended inactivity. I have disabled ACPI in my BIOS (I think), and any power management settings I could find in gnome to try to troubleshoot. That seems to have helped, but it still happens semi-regularly, sometimes when I am in the middle of using it. I have tried checking logs and googled anything that seemed important. ie a message in kern.log reads: Clocksource tsc unstable

View 2 Replies View Related

Servers :: Ubuntu 10.4 Server Stops Accepting Connections After A Period Of Time / Fix It?

Apr 24, 2011

I'm not sure if this belongs in the Server or Networking section of the forums. Anyway, last month I upgraded my server to Ubuntu 10.04 LTS. Since then, I've had a recurring problem wherein after a certain period of time, the server stops accepting network connections. Ubuntu 10 will continue to reject network connections until someone logs into the server locally, after which time network connectivity is restored and the cycle begins anew. Essentially, the server goes into a "half sleep mode". I say half because the computer is still on and the fans are running.

I've done some searching around various forms and initially figured this issue was related to problems with the Network Manager service (https://bugs.launchpad.net/ubuntu/lu...er/+bug/524454), so I removed the service altogether. However, this problem is still occurring.

I've poured over /var/log/messages and /var/log/syslog, but have noticed no irregular behavior. Has anyone else experienced this issues? I'd rather not resort to downgrading back to Gusty Gibbon if I can help it.

I am happy to provide more information if its needed

View 4 Replies View Related

Ubuntu :: CPU Frequency Scaling Monitor Won't Stay At 800mhz After Reboot Or A Certain Period Of Time

Oct 26, 2010

The CPU frequency scaling monitor won't stay at 800mhz after reboot or a certain period of time. My goal is to always have my dual core CPU locked at 800mhz to have it run cooler. I'm running Ubuntu 10.10 on my toshiba u300 laptop.

View 4 Replies View Related

Programming :: Set Period Of Time To Tcp Connection To Wait For Request Or Respond For Tcp Block Read

Feb 27, 2010

I wanted to know how can I set a period of time to a tcp connection to wait for request or respond for tcp block read. which system call or function I can use? Does any body know a very simple quick and easy reference on web for socket programing that has lots of socket programing examples in it?

View 1 Replies View Related

CentOS 5 :: NIC Driver Will Basically Crash/restart Causing No Connectivity For A Period Of Time?

Mar 17, 2010

I'm using centos 5, kernel 2.6.18-164.11.1.el5I have occasional server network problems (the NIC driver will basically crash/restart causing no connectivity for a period of time) due to the marvell sky2 NIC driver being a problem, as discussed here: This essentially means the server is unreliable when under any kind of reasonable load, to put it mildly.Worse still, the driver problem has not been resolved in 2.6.18.x - but it seems to have been resolved in the latest Linux kernels.I really don't want to compile the kernel from source, etc, but it looks like I may have no choice.Is there a repo which has a pre-compiled 2.6.20+ or 2.6.30+ kernel which I can use,

View 8 Replies View Related

Fedora :: Schedule Some Shell Scripts At Certain Time?

Jun 30, 2011

How can I schedule some shell scripts at certain time and upon certain actions (on start, shut down, etc...)??

View 1 Replies View Related

Ubuntu Installation :: Schedule Updates For A Certain Time Of Day?

Sep 1, 2011

My Internet service provider here in South Africa is Vodacom (Vodafone) and I pay a huge amount of cash for 2.5Gigs per month. They do, however, give me the same amount of data for free that I can make use of between midnight and 5.00am.For this reason, I would like to be able to schedule my update manager to download all updates at, say, 10 past midnight.Can any of you guys out there offer any suggestions or is there a way that we can make a request for the Ubuntu developers to include this in "Update Manager"?

View 2 Replies View Related

General :: Log The Start/completion - Time&date - Of My Cron Job Script?

Jan 11, 2010

How do i log the start/completion (time&date) of my cron job script? i want to be able to see what time it started and what time it finished? and if there where any errors while running my script.

View 3 Replies View Related

General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?

Jul 27, 2011

Is there any way to automatically trigger a cron job each time I log in on my linux account.

View 9 Replies View Related

General :: Create Cron Tab When DSL Line Down Set Automatically Restart The Network Service While DSL Line Up?

Oct 7, 2010

How to create cron tab when DSL line down set automatically restart the network service while DSL line up?

View 3 Replies View Related

General :: Time Synchronisation Service On UNIX

Jan 27, 2010

I have a VPS running Debian. The time that it reports from the date command is two minutes fast.Is there a service that I can install that will keep the time correct?

View 2 Replies View Related

General :: Don't Need The Apache Service Running All The Time?

Oct 27, 2010

I have recently ported from Windows to Linux (xubuntu) I am a developer, i installed everything i need, LAMP. Now in Windows i used to turn off all unnecessary Services, i don't need the Apache or MySQL service running all the time. I used: net start mysql

Whenever i needed it. How do i do the same in Linux:
1. Disabling not-needed daemons from auto-starting?
2. Starting them only when i need them?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved