General :: Need To Be Able To Set Cron To Reboot System Every 5 Min
Jul 19, 2010I have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.
View 1 RepliesI have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.
View 1 RepliesI created a very simple cron job for testing my first Linux system but It doesn't work. After open the crobtab file by typing crontab -e, I put a line like this to send email in every 2 minutes to report disk usage:MAILTO=dan@gmail.com*/2 * * * * du -s /homeI tried to restart cron several times but I still got nothing worked. /etc/init.d/crond restart
View 14 Replies View RelatedHave a headless server running Lucid 64 bit. Everything is working great except for a couple of Cron jos I'm trying to have run at boot.
My user crontab looks like this:
# m h dom mon dow command
01 * * * * /home/ceallred/Scripts/SambaBkup.sh
@reboot /usr/bin/SpiderOak --headless &The SambaBkup script works like clockwork...
The SpiderOak job doesn't start. It works if I type the command in manually.
syslog only shows:Jul 13 22:45:33 RavenWing cron[1010]: (CRON) INFO (pidfile fd = 3)
Jul 13 22:45:33 RavenWing cron[1022]: (CRON) STARTUP (fork ok)
Jul 13 22:45:33 RavenWing cron[1022]: (CRON) INFO (Running @reboot jobs)
Jul 13 22:45:33 RavenWing CRON[1048]: (ceallred) CMD (/usr/bin/SpiderOak --headless &)Yet ps -A doesn't show a running SpiderOak process. It shows after starting manually.
Is there any way to automatically trigger a cron job each time I log in on my linux account.
View 9 Replies View RelatedI have a smoothwall linux box that I need to setup an automatic reboot daily. Can anyone point me in the right direction to begin.
View 1 Replies View RelatedAn error occurred during the filesystem check. Dropping you to the shell; the system will reboot when you leave the shell.
Warning -- SELinux is active
Disabling security enforcement for system recovery
Run 'setenforce 1' to reenable
I am running an embedded Linux Release 2.4.19-uc0.
I have code in several places that calls
reboot(LINUX_REBOOT_CMD_RESTART)
successfully. I need to put it into a new place in a application running on the system. When I do, it seems to just lock up the system and does not return from the call nor leave me able to Telnet in or Ping or anything. I've tried puttingtrace code in to write info out to a file, but that too is not working (as it never returns from the reboot() call.I don't get any error from reboot(), it just does not return and does not appear to restart the system.
fscheck is quite annoying, since it usually occurs when I reboot my system performing administration tasks. do I actually need fscheck if Im using the ext3 file system? if not how would I extend the period between checks or just turn it off altogether?
View 9 Replies View RelatedI've just upgraded to KDE 4.5.2 "release 5".When I go into System Settings (Version 1.0) the System Cron options are all greyed out.I've googled and searched the forums but cannot find a solution, what do I need to do to rectify this?
View 4 Replies View RelatedI'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.
View 2 Replies View RelatedI am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.
View 6 Replies View RelatedI have cron jobs running and the timing is critical, because I'm running Nessus scans on production servers. If I hit them at the wrong time, I'm toast. But when I check the cron log, I see that it is an hour off. Here is the output for the command "clock":
Wed 31 Mar 2010 03:01:26 PM CDT -0.257677 seconds
And this is the tail of the cron log:
Mar 31 16:00:01 nes-001 CROND[8790]: (root) CMD (/Nessus/Targets/NessusScriptDataCenterScan.test)
Mar 31 16:01:02 nes-001 CROND[8822]: (root) CMD (run-parts /etc/cron.hourly)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8822]: starting 0anacron
Mar 31 16:01:02 nes-001 anacron[8832]: Anacron started on 2010-03-31
Mar 31 16:01:02 nes-001 anacron[8832]: Normal exit (0 jobs run)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8834]: finished 0anacron
Cron thinks it is 4:00 p.m., but it's really 3:00 p.m. How do I tell Cron what time it is? (Stopping and restarting the crond service did not change it.)
Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com
this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.
How to write a cron jobs in linux to monitor my project diskspace usage?
check diskspce= du -h .
any clue for me as a beginner?
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:
Code:
ps -A | grep apt
showed it for a long time,
Code:
sudo tcpdump tcp
showed communication with canonical sites,
but:
Code:
top
did not show any apt using CPU
[code].....
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
View 2 Replies View RelatedI have set up a cron in /var/spool/cron/root
*/15 * * * * /usr/bin/phplist.sh
I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.
If I run /usr/bin/phplist.sh right in the shell it works great.
Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.
Code:
I use Fedora12 AMD 64 and use Gnome and use K3B for write CD and DVD , when my system is ON for 1 hour and I want write DVD with K3B , I have to reboot system and after reboot , I can write DVD and I do not have problem , but when I do not REBOOT system and start write DVD , write 4.3 GB od DATA , take long time , and my fedora write on DVD in 8 hour and sometimes it take long time , but after reboot write one DVD take 16 min. I do not know why .
fedora work for 1 hour -----> when dose not reboot system --> take 8 hour for write one DVD Fedora work for 1 hour -----> when reboot system ---------> take 16 min for write on DVD
this is happen when I use brasero for write DVD. my HDD is 80 GB and I use Default partitioning rule for partition my HDD
After a system crash while watching a video with vlc and downloading somthing, i can't reboot my system.In the secure mode i get this informations[4.774621] device-mapper: dm-rai45: installized v0.2594b[ 1166.832045] ACPI: EC: non-query interrupt recived, switching to interrupt modeNow the scree is black (20 minnutes later
View 1 Replies View RelatedI was wondering if anyone knew how to add a user/pass and allow them to issue the reboot command. Ideally, I dont want them to be able to see files/directories or anything else for that matter.I was thinking something along the lines of a chroot jail that has a single script that would call the reboot.
View 2 Replies View RelatedEvery time I reboot my computer the system time always comes up exactly 10 hours behind where it should be. So if I reboot it at 16:00 it comes up as 06:00.
This has only been happening since I got back from a trip to Australia, where I naturally changed the computer's timezone to match the local one. I'm now back in Central European Time which is 10 hours behind Australia's. This is on opensuse 11.3.
I've used the YAST date and time tool to set the timezone correctly, and /etc/localtime is set correctly:
Code:
:~> sha1sum /etc/localtime
b065fae6bda0f0642ca6a52b665768e34a99d213 /etc/localtime
:~> sha1sum /usr/share/zoneinfo/Europe/Berlin
b065fae6bda0f0642ca6a52b665768e34a99d213 /usr/share/zoneinfo/Europe/Berlin
[Code].....
in a previous version of openSUSE (I think it was v10.3), there was a possibility to directly/automatically start another OS after exiting (rebooting) openSUSE. This could be done through "right-clicking" on the Reboot (Restart) button from the KDE's log-off dialog and choosing the OS you wanted to be started after the restart. Please, does anybody know if this is possible in openSUSE 11.2 (KDE 4.4)? PS: I know that GRUB enables that, but I prefer a "GUI way" rather than using command line and editing configuration files
View 4 Replies View RelatedI am using Ubuntu 9.10. Every time I try to reboot my system it hangs. Shutdowns work properly. I've done multiple re-installations. Nothing I've tried fixes the problem. Does anyone have any suggestions?
View 4 Replies View RelatedI ran Karmic until last week, and noticed that it seemed to be getting slower. I was hoping a clean install of Lucid would fix that. it's worse. If I leave my machine running for a few hours, something begins dragging down the performance to a crawl.
System Monitor sometimes won't come up - launches an empty grey window. Other times, System Monitor reports that gnome-system-monitor is consuming 86-96% CPU. This is a dual-core Dell e6500 laptop with 4 Gigs of RAM, it should fly. Any ideas on troubleshooting this?
How can I stop Firefox from always loading when I restart my computer?
View 2 Replies View RelatedA few days I used the wubi installer to install Ubuntu over Windows. This I did on my C: drive. I also have another partition, the X: which now is my D: drive after I used the gparted live cd to give the system partition more free space. No problems so far.
But now, when I use Clementine Player, I see that it cannot find any of my songs in my library and Deluge has to 'check' my downloads every time I open it after a reboot. My theory is that the folder inside /media/, which contains the file system gets a new name (a 16 digit capital letter/number name) every time I reboot my computer - or maybe every time I use Windows and then Ubuntu again? It's pretty annoying,
We are running SUSE 10 SP1 and MySql 5.0.62 with heartbeat configured cluster attached to a SAN and after upgrading powerpaths on the fiber switches we had to reboot the machines and remount the SAN luns.
The cluster successfully started and was working fine for about a day or so and then i logged in as root and hosts, fstab, known_hosts were all giving me this error when i tried to modify them "W10: Warning: Changing a readonly file"
I failed over to another node and same thing happens on another node. I can't modify any of these files
I have upgraded Fedora 13 to Fedora 15 using installation DVD. Upgrade went well, no issue. After the reboot, the system stops after following line:
Started LSB: Suspend/Resume libvirt guests on shutdown/root.
I do not have any idea what kind of problem is, also I would like to keep my old version installation.