Using cron to restart weekly?

I have a Mac Mini that runs my house, and after a week or two, it starts to get "slow". It's running the very recent versions of everything (I typically install the newest versions about two weeks after they're released). But... it still gets slow. While I try to track down "why", I thought I'd schedule a cronjob for "root" to reboot/restart it every other weekend. It should be fairly simple (a "/sbin/shutdown -r now" command).
All the apps that are running won't have "unsaved docs", so I won't lose any data. I do this manually via Apple --> Restart now, but would love to have it done "automatically".
Is there a better way to do this? Any reason I shouldn't?
Thanks for any advice/opinions!
Steve

When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad and start typing the name.
The title of the Console window should be All Messages. If it isn't, select
          SYSTEM LOG QUERIES ▹ All Messages
from the log list on the left. If you don't see that list, select
          View ▹ Show Log List
from the menu bar at the top of the screen.
Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
Please don't indiscriminately dump thousands of lines from the log into this discussion.
Please don't post screenshots of log messages—post the text.
Some private information, such as your name, may appear in the log. Anonymize before posting.

Similar Messages

  • Using cron to stop and restart password protected instance (App Server 7)

    I have been asked by a customer to create a cron job to stop and restart their web application running under Applications server 7.
    I have created the script and can stop the instance, but I am unable to start it as it is asking for a password.
    I have included this in the script but it doesn't seem to like having a password supplied this way.
    Am I doing something wrong or Are there any alternative ways of stopping and restarting an application, using Cron?

    Have you looked at using password.conf file as described in --
    http://docs.sun.com/source/816-7155-10/crcfgfil.html#1075615
    You might also want to look at --
    http://docs.sun.com/source/816-7156-10/agsvrprf.html#1019453

  • What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx

    What do I do with the Beta 10.9.3 program I've been using these past several weeks, now that 10.9.3 is out and downloaded.......I still have 'feedback assistant' in my dock........are there files I need to do something with ???  thanx..............75 yrs old and still swimmin' upstream.........

    from : OS X Beta Seed Program FAQ
    How do I get a shipping version of OS X back on my Mac?
    To get a shipping release of OS X on your Mac, you can simply install the final version of the software you are testing when it appears in Software Update.
    How do I leave the OS X Beta Seed Program?
    To leave the program, visit the Leave Program page and follow the instructions to remove your Apple ID and your computers from the OS X Beta Seed Program. This will stop pre-release updates from appearing in the Mac App Store on your computers.
    You only need to do more than you already have, if you'd rather not see future pre-release updates.

  • Acrobat Pro X will not open today. I used it a few weeks ago, and the rest of my CS6 Suite of programs are working. How do I get Acrobat Pro X to work again?

    Acrobat Pro X will not open today. I used it a few weeks ago, and the rest of my CS6 Suite of programs are working. How do I get Acrobat Pro X to work again?

    Please refer
    Doesn't launch after 30 days | Installed as part of a CS6 suite

  • Having bluetooth connection problem after using Yosemite for a week

    After installing and using Yosemite for a week, I experienced bluetooth connection problems with my magic mouse and headphone, my model is macbook pro retina early 2013, hope to fix this soon

    Hello there Oranger84,
    If I understand correctly you are having some sort of Bluetooth issue between your computer and Magic Mouse and Headphones after installing Yosemite. Depending on the particular symptoms you are seeing, I would recommend the following article to help you get that resolved:
    Troubleshooting wireless mouse and keyboard issues
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Using cron with exp

    Hi,
    I want to schedule some backups for certain tables at night... any idea about use cron with exp....
    i tried as follows:
    crontab -ei made the next line:
    00 20 * * * exp userid=system/manager file=tt00.dmp tables=product
    when i confirm the schedule is ok.... but it doenst work
    Any help will be appreciated

    thanks robert,
    i do it.... here its the solution:
    i made an script which contains:
    ORACLE_SID=mySid
    export ORACLE_SID
    ORACLE_HOME=/oracle/product/8.1.7
    export ORACLE_HOME
    $ORACLE_HOME/bin/exp userid=bob/boby file=/home/user/bob/exporta.dmp tables=factventa,producto,cliente,acumventa
    the script was save as name.bat
    then i use cron as follows:
    crontab -e
    and in the file i wrote:
    00 23 * * * /home/user/bob/name.bat
    thats all !!!

  • Using Cron to schedule an rsync with Leopard?

    Firstly, just wondering if any changes have taken place from Tiger to 10.5.5 in writing and running Cron command lines..I tried using Cron to run rsync at a scheduled time and accessing a command line on my desktop that works on its own, but didn't work. Would I have to put the command line into a specific location like Documents..??
    ANy help would awesome!
    Thanks
    Mark

    50 15 * * * sh ~/Documents/mySOKdown.command
    Yes it looks right, but that doesn't mean anything when dealing with cron.
    First, I've seen systems where cron was running on a different timezone than what you are in. This is why I always try the
    * * * * * date >/tmp/tmp.cron
    which will tell me 2 things. First it will tell me cron is actually working as I will only get a /tmp/tmp.cron file with the current time and date in it if cront is working. The 2nd thing it will tell me is if cron is working in the same timezone that I'm working in.
    Second, the cron environment does not include all the environment variables you normally see when you are using a terminal session. Here are the environment variables I see on my system:
    SHELL=/bin/sh
    USER=harris
    PATH=/usr/bin:/bin
    PWD=/Users/harris
    SHLVL=1
    HOME=/Users/harris
    LOGNAME=harris
    Make sure you do not depend on missing environment variables.
    Again, I suggest you check to see if cron has reported any errors to you via /usr/bin/mail (NOTE: this is not Apple Mail).

  • EJB Persistence using cron job

    We have a EJB based bean managed persistence classes that run on the app server. I want to use same classes using cron job.
    How do I do that???
    Tried to execute these classes thru following steps...
    In side stand alone java class - main method create instance of the pmf and get persistence manager.
    Start a tread and call JDO object using persistence manager.
    getting whole bunch or errors like system-server-config.xml file not found. I am not able to create InitialContext outside app server.
    Please give your suggestions. TIA

    Why don't you use a J2EE based scheduler?
    http://java-source.net/open-source/job-schedulers/quartz
    http://java-source.net/open-source/job-schedulers/jcrontab

  • Schedule export using cron?

    Hi
    I want to schedule the export of a table using cron job.
    create the .sh file as below
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/product/9.2.6/db_1
    export ORACLE_SID=orcl
    /opt/oracle/product/9.2.6/db_1/bin/exp system/manager file=/home/oracle/test.dmp log=/home/oracle/test.log tables=table_name
    $crontab -l
    43 16 * * * /home/oracle/export.sh > /home/oracle/export.log
    but when this crontab job runs export is not performed and i can't file the export dump file and logile.
    test.log file is getting created with nothing in it.
    Can any one let me know what is wrong with the shell script.
    Regards,

    Hi ,
    Can you please change the permission of your export.sh file
    $chmod 775 export.sh.
    Study the below link for more details.
    http://www.elated.com/articles/understanding-permissions/
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • I have an iPhone 5 unlocked. I have been using it for few weeks but 4 days ago I turned it off and in the morning it had NoService. Called tmobile and apple costumer services no one helped. Did any one had this issue and solved it?

    I have an iPhone 5 unlocked. I have been using it for few weeks but 4 days ago I turned it off and in the morning it had NoService. Called tmobile and apple costumer services no one helped. Did any one had this issue

    If you got the Unlocked message it means it was successfully unlocked by AT&T.  Apple will not relock or block it.  They have no objections to it being used on T-Mobile.  It is still under warrantee.  Take to an Apple store.  They can test it with a SIM from AT&T.  If that doesn't work have them replace the phone.  Have them verify that the new phone is unlocked.  If it does work with the AT&T card then it is a T_Mobile problem.

  • My Ipod Touch drained battery, I then didn't use it for a week, went to charge it and I get nothing, only a black screen.  HELP!!! It is not the cord, I tried it on other products and the usb cord works fine.  I need to charge so I can use.

    My battery drained on my Ipod Touch.  I did not end up using it for a week. Yesterday I charged it with my USB to the computer, came back the next morning and it was still dead.  I then tried charging it on my laptop....same thing.  Went through the tech support things about holding the two buttons down for system restore....nothing.  Please HELP.

    Give it time. Even plugged in the battery needs to have a certain amount of power to power the screen.
    Leave it on the charger for a couple of hours and hten see if it'll turn on.

  • I didn't used my iPad 2 for many months. Last week when I tried to use it, it wasn't charged. Then I put it on charging and again didn't used it for a week. Yesterday, When I tried to use it again it's saying that it is disabled for 22 million mins. HELP!

    I didn't used my iPad 2 for many months. Last week when I tried to use it, it wasn't charged. Then I put it on charging and again didn't used it for a week. Yesterday, When I tried to use it again it's saying that it is disabled for 22 million mins. I treid to restore it by connecting to iTunes but it's not restoring. Kindly Help.

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • Can i exchange it after using more than 2 weeks?

    i got this new macbook pro last month.
    the model is A1286 15'display
    it's too hot that i can't put it on my legs.
    it has been used more than 2 weeks so i can't return it.
    can i exchange to 13' macbook pro?
    PS: i have upgrade the memery to 8GB by myself.

    Ter.z wrote:
    sorry about that i just *_+read the name+_* and it's called 'lap'top...
    JasonFear wrote:
    Really? Where in Apple's documentation, marketing material or anything else they've ever produced is it called a laptop? I'd love for you to provide that link, picture or screen shot...
    FoxFanRay wrote:
    Please see this picture on the apple web site advertising college student use of the MBP - http://www.apple.com/students/
    Looks like it is on a lap to me!
    But that webpage still does not refer to the device as a "laptop". (i.e.: the word "laptop" is not specifically stated on that page.) It may be on a lap, but so can we put many other things. Should Kindles be called "laptops"? (For that matter my baby nephew? )
    Jason was asking for a link, picture or screenshot of where the word "laptop" was used by Apple to indicate the Macbook Pro.
    And as my post implies, Apple does not say you can't use the Macbook Pro on a lap, but that you remove it from your lap when it gets hot.
    - If your MacBook Pro is on your lap and gets uncomfortably warm, remove it from your lap and place it on a stable work surface.
    I infer from that statement that while Apple is not saying "do not use" on a lap, they are saying that the Macbook Pro is not intended for long-term use on a persons lap. So just because you have a picture of someone using a Macbook or Macbook Pro on a lap, that does not mean it _+must be+_ a "laptop computer."

  • My 4 can see home wifi but won't use it without restarting

    I have wifi at home and at work. Many times when I come home, my 4 will automatically connect to my home wifi, but seemingly won't use it without restarting the phone. I tried going into the network settting and did the reset and went and re-entered the wifi passwords for home and work; and soon after displayed the same bahvior. Work wifi doesn't bother it. My 4 didn't aquire this problem until OS6 and still does it under 6.0.1. Turning off the phone's wifi and back on doesn't help. Renewing lease on wifi doesn't help. My wife has the same phone on the same wifi and the same time and it does'nt do this. She doesn't have wifi at work.
    Sometimes I get very sporadic an limited data, could be using 3G. After phone restart the phone is fine until another day when the problem returns. I've tried turning ap's off but nothing helps but a restart.

    The first thing you need to do is restart your router.  Unplug it, wait 1-2 minutes, plug it back in and wait for it to connect to your provider and download the latest IP informaiton.
    Next go into settings and forget your wifi network.
    Reconnect to your home wifi.
    Go into the settings for your network and set the proxy to Auto not off or manual.
    Hopefully this will work for you.  I had the same problem when I updated to iOS 6.0.1 and setting the proxy to auto seems to have cleared it up.
    Not sure what Apple has done to the firmware and how it interacts with wifi, but hopefully they will have it worked out when iOS 6.1 is released.

  • Using cron for a Cinnamon wallpaper slideshow

    Hey guys,
    I'm trying to use cron to change my wallpaper for Cinnamon but I am having some issues.
    The cronjob is:
    */2 * * * * DISPLAY=:0 gsettings set org.gnome.desktop.background picture-uri "file://"$(find /home/bryan/.wallpapers/ -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" | shuf -n1)
    I know it's a doozy, but it should work.  The problem is that the wallpaper won't update unless I open up the GUI wallpaper changer for gnome. Does anyone know of any work arounds that could help me out?

    try this script with your cron job:
    #!/bin/bash
    # Script to randomly set Background from files in a directory
    # Directory Containing Pictures
    DIR="/home/garry/Pictures/"
    # Command to Select a random jpg file from directory
    # Delete the *.jpg to select any file but it may return a folder
    PIC=$(ls $DIR/*.jpg | shuf -n 1)
    # Command to set Background Image
    feh --bg-fill $PIC
    just modify your pictures path and you are good to go.

Maybe you are looking for

  • How to search text in the table?

    Suppose, I've selected some fragment in my document, and I need to find and replace some text in it. Everything is ok, untill I select a part of a table with this text. Does anyone has idea, how to search through the selected cells in the table? Or,

  • Powerpoint in Premiere

    A client gives me lots of Powerpoints (ugh, if you know what I mean- the only thing worse than sitting through a PPT... is editing a PPT). I know you can't import PPT to Premiere, so I usually save as jpgs and edit away... Lately, I've been getting m

  • Playing DVD using Java

    Hi expert(s), I am in progress of the development of a website, in which i need to play a DVD (extension with .IFO) in any way like giving a link or having a frame and playing the movie within it & etc, Is it Possible in java web application?, Any id

  • Time machine on a hard drive partition

    Hi there,                  i'd like to share a tip that i learned yesterday from an Applecare phone call. Which is DON'T partition a harddrive with Time machine on it. My computer is a 2012 2.3ghz macbook pro with Mountain Lion. I am new to Time mach

  • Roundcube on Server 10.8.5 Not Running

    Everyone, Up until yesterday the Rounccube install on a 10.8.5 server was running correctly.  The computer was restarted and now every time some tries to connect to the web interface the get the: DATABASE ERROR: CONNECTION FAILED! Unable to connect t