Do i need to run maintenance scripts

does OS 10.6 still run
daily  weekly and monthly maintenance scripts

Hi m,
The scripts are still performed in the early morning hours, but most people don't have their Macs awake at that time on a regular basis. Running them is very quick in Terminal.
sudo periodic daily weekly monthly

Similar Messages

  • Run Maintenance Scripts

    On my PM G5 in the past I have successfully run maintenance scripts as follows:
    periodic daily weekly monthly
    from the terminal window with no problems. Usually when the command line is
    executed the sys asks for master password and when it is entered, the program runs
    without further messages, only cursor displayed, until it finishes and returns
    the command line prompt.
    Now suddenly when the command is executed the sys returns:
    208-106-62-250:~ richardrkelley$ periodic daily
    /usr/sbin/periodic: line 1: /var/log/daily.out: Permission denied
    /usr/sbin/periodic: line 106: 370 Broken pipe date
    cat: /tmp/periodic.7sKejqD8Mz: Bad file descriptor
    cat: /tmp/periodic.7sKejqD8Mz: Bad file descriptor
    cat: /tmp/periodic.7sKejqD8Mz: Bad file descriptor
    208-106-62-250:~ richardrkelley$
    I have run the disk utility and repaired permissions and repaired the disk
    with no change. There were some minor repairs done to permissions and disk.
    I would appreciate advice as the how to fix this problem and to prevent
    future occurrence of same.
    Thanks all.

    Oops; I had a senior moment.
    The correct command to run maint scripts is:
    sudo periodic ........
    sorry for the dumb question.

  • Running Maintenance Scripts for Mac OS 10.5.8 HELP!

    I am trying to run the maintenance scripts on my laptop for the first time. I go to Terminal type in "sudo periodic daily weekly monthly" and hit return. A warning message pops up the some data may be lost.... and the the Password prompt comes up. I back up consistently so I just want to run the scripts since it has never been done. However, when I try to type in my password, NOTHING types. I hit return and tried again, but nothing. Can someone please help me figure out what is wrong and if there is any other maintenance I need to do to the system?
    Thanks in advance for any help.

    You don't need to use any utility, or perform any procedure, to make sure OS X's built-in maintenance tasks have run under OS X 10.5 and later.
    OS X 10.5 will run its cron jobs automatically (actually, they are no longer handled by the UNIX facility "cron", they are now handled by a similar facility called "launchd". if that means anything to you) whether you have left your computer on all night or not. You no longer need a utility to run missed maintenance as of OS X 10.5. It will run automatically at the next available opportunity. Actually, this was the case as of OS X 10.4, but a bug kept the maintenance routines from running more than once per restart under OS X 10.4. This was fixed in OS X 10.5
    http://discussions.apple.com/message.jspa?messageID=6552347
    http://arstechnica.com/reviews/os/macosx-10.4.ars/5
    http://developer.apple.com/macosx/launchd.html

  • Running Maintenance Scripts

    Anyone have a suggestion as to what program might be best for Leopard? 'Maintenance' (with the wrench icon) and Cocktail, and Onyx won't work on 10.5 ????!!!
    Any other programs available?
    Thanks

    ChicagoLarry,
    I was curious about the same thing, so I've typed the following in my Terminal window to see what has run and when:
    ls -la /private/var/log/*.out.
    What I've found is a bit odd...
    With Macaroni turned off, the scripts seem to run on my iMac after it has been awakened from sleep--that's good. However, they don't seem to run on my Powerbook after it's been awakened...I don't understand why...
    Also, I had a problem with the latest version of Macaroni initially running the weekly script on my iMac... It tried to run the script but couldn't seem to complete it. After I manually ran the scripts (sudo periodic daily weekly monthly), then Macaroni seemed to accomplish them ok. (I've had Macaroni turned off on both my computers until I can verify that (1) it's needed, and (2) it properly runs daily, weekly, and monthly scripts...)
    So, to answer your question: The definitive answer is either, "I don't know," or "It depends."
    More research to do!!
    Woo Hoo!
    Bob

  • Why MicroSoft 2000 SR needed while running the script using test manager???

    hi all,
    whenever I trying to run a script using test manager,one POP-UP comes which starts installing MICROSOFT 2000 SR.
    and in few seconds it complaining for some missing component,
    can any body tell me why it is happening.
    what is the need of Microsoft 2000 SR while running the script in test manager.
    tnx
    USOni

    USoni
    I have seen that problem happening before, even that i was never able to figure out why, something that you can try is changing the service log in credentials for both:
    Oracle Application Testing Suite Agent Service
    Oracle Application Testing Suite Application Service
    and use a proper user with admin rights.
    let me know if that helped
    Regards
    Alex

  • Need to run powershell script in a bat file

    I have a ps1 file with the following:
    Get-ADUser -Filter * -SearchBase "ou=<HOSPOU>,ou=Domain Users and Groups,dc=<hospdomain>,dc=local" -Properties Description,EmailAddress| Select-Object -Property Name,SamAccountName,Description,EmailAddress|Export-Csv "\\<server>\home2$\information
    services\IS STAFF\Documentation\AD Info\smcusers.csv";
    I have a bat file:
    @ECHO OFF
    SET ThisScriptsDirectory=%~dp0
    SET PowerShellScriptPath=%ThisScriptsDirectory%smcusers.ps1
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory "%PowerShellScriptPath%";
    But while it launches powershell with the AD module, It apparently cannot read the ps1 file.
    I get:
    H:\>C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command i
    mport-module ActiveDirectory "H:\smcusers.ps1";
    Import-Module : A positional parameter cannot be found that accepts argument 'H
    :\smcusers.ps1'.
    At line:1 char:14
    + import-module <<<<  ActiveDirectory H:\smcusers.ps1;
        + CategoryInfo          : InvalidArgument: (:) [Import-Module], ParameterB
       indingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
       .Commands.ImportModuleCommand
    I have tried to modify the parameters 
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory -File "%PowerShellScriptPath%";
    Still no luck.
    I need to be able to run this as a scheduled task.
    Karon W

    Apparently I don't know where to put everything.
    I have a single line:
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit import-module ActiveDirectory; -Command {Get-ADUser -Filter * -SearchBase "ou=Shannon Memorial,ou=Domain Users and Groups,dc=shannonhealth,dc=local" -Properties Description,EmailAddress|Select-Object
    -Property Name,SamAccountName,Description,EmailAddress|Export-Csv "\\svr-resource2\home2$\information services\IS STAFF\Documentation\AD Info\smcusers.csv"}
    This is the response:
    H:\>C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit import-mod
    ule ActiveDirectory; -Command {Get-ADUser -Filter * -SearchBase "ou=Shannon Memo
    rial,ou=Domain Users and Groups,dc=shannonhealth,dc=local" -Properties Descripti
    on,EmailAddress  | Select-Object -Property Name,SamAccountName,Description,Email
    Address  | Export-Csv "\\svr-resource2\home2$\information services\IS STAFF\Docu
    mentation\AD Info\smcusers.csv"}
    'Select-Object' is not recognized as an internal or external command,
    operable program or batch file.
    I modified to 2 lines:
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit import-module ActiveDirectory;
    Get-ADUser -Filter * -SearchBase "ou=Shannon Memorial,ou=Domain Users and Groups,dc=shannonhealth,dc=local" -Properties Description,EmailAddress|Select-Object -Property Name,SamAccountName,Description,EmailAddress|Export-Csv "\\svr-resource2\home2$\information
    services\IS STAFF\Documentation\AD Info\smcusers.csv"
    This is the response:
    H:\>C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit import-mod
    ule ActiveDirectory;
    PS H:\> exit ************I had to type*****************
    H:\>Get-ADUser -Filter * -SearchBase "ou=Shannon Memorial,ou=Domain Users and Gr
    oups,dc=shannonhealth,dc=local" -Properties Description,EmailAddress  | Select-O
    bject -Property Name,SamAccountName,Description,EmailAddress  | Export-Csv "\\sv
    r-resource2\home2$\information services\IS STAFF\Documentation\AD Info\smcusers.
    csv"
    'Get-ADUser' is not recognized as an internal or external command,
    operable program or batch file.
    If I paste the command in before I type exit, it works. 
    If I paste:
    %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit import-module ActiveDirectory;
    I am put in the ad powereshell
    Then I paste:
    Get-ADUser -Filter * -SearchBase "ou=Shannon Memorial,ou=Domain Users and Groups,dc=shannonhealth,dc=local" -Properties Description,EmailAddress|Select-Object -Property Name,SamAccountName,Description,EmailAddress|Export-Csv "\\svr-resource2\home2$\information
    services\IS STAFF\Documentation\AD Info\smcusers.csv"
    and I get the expected output.
    What do I need to have in the bat file so the 2nd line of the script will run? and where does it go?
    Karon W

  • Need to run php script before the Flash component kicks in

    I have a slide show component in Flash which uses an xml file to load images. The xml file, however, is created dynamically when the user selects which slide show they want to see. How do I run the php script BEFORE the slide show component has a chance to look for it? Usually it begins as soon as the .swf is run.
    thanks,
    chop

    thank you for responding.
    I'm still new at as3 so forgive me for needing details.
    I searched adobe for help and came up with the following to import the component. However, it seemed too easy to be true and so it was. I received errors when I ran it. The component is a commercial one called SlideshowBox and is in my library with that exact name.
    //add a component to the stage
    import fl.controls.SlideshowBox;
    var aSlideshowBox:Button = new Button();
    addChild(aSlideshowBox);
    errors:
    Scene 1, Layer 'Actions', Frame 1, Line 3    1172: Definition fl.controls:SlideshowBox could not be found.
    Scene 1, Layer 'Actions', Frame 1, Line 3    1172: Definition fl.controls:SlideshowBox could not be found.
    Scene 1, Layer 'Actions', Frame 1, Line 4    1180: Call to a possibly undefined method Button.
    thank you, k

  • Error When Running Maintenance Script

    When I try to execute the Maintenance Task script that was generated by AWM, I get the following error:
    Successoracle.AWXML.AWException: Action BUILDDATABASE failed on object SCHEMA.AW_NAMEThe weird thing here is that there is no actual ORA error, and even the XML_LOAD_LOG updates itself with information about
    the current maintenance, but the dimension is not actually maintained.

    Hi duncanwarrender,
    According to your description, you get errors when double-clicking on the Maintenance Plan. Based on my research, this issue could be due to that DTS Package is corrupt or missing. You could follow the steps below to troubleshoot the issue.
    1.Uninstall Management tools. In Control Panel, click Uninstall a program, click Microsoft SQL Server (for example, Microsoft SQL Server 2012(64-bit)) and click Remove. Select a instance and then select the feature 'Management tools' to uninstall.
    2.Reinstall the following features from SQL Server setup, make sure that the installation of these tools complete successfully.
    a. SQL Server data tools
    b. Client tools SDK
    c. Client tools backwards compatibility
    d. Management tools-complete
    There is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/2b7d4e19-fafa-4d06-a01c-22e62ea074be/not-able-to-access-maintenance-plans?forum=sqlgetstarted
    Regards,
    Michelle Li

  • Need to run Shell script based report from EM Grid Control

    Hi DBAs,
    I have a monitoring script for host which I want to run from OEM and send me the email report every day. I have configured soem reports for SQLs but not sure how can I get it working using OEM. Looking for your help. I am using Grid Contro Version 10.2.0.4.
    Regards
    -Samar-

    OK.. I was under the impression that u have a script ready :)
    Now u different way's to implement.
    1.If it's an application which has a login page url,u can monitor URL from OEM with HTTP ping
    2.U can have a job where it will check for process using ps -ef and set that job will fail if it doesn't get N no.of processes somthing like that.

  • Do I need maintenance scripts ?

    I am using Macaroni which runs Unix maintenance script every time I start the computer. At night the cpmputer is shut off. Do I really need to run these scripts with Snow Leopard ?

    I know people have weighed in on this before.
    sudo periodic all
    that is all and no I don't leave mine on, or run them daily, in fact hardly at all. But I do other things to keep the system in top shape.
    as long as the utility is certified compatible, you are fine. I think Onyx, SL Cache Cleaner and others can also automatically schedule cron to run next time, I just don't do anything automatic.
    Every time you start? or once a day? some scripts are only weekly and monthly anyway.

  • Running Periodic Maintenance Scripts in Mountain Lion

    Here's an oldie question that I think has been asked with every new version of Mac OS X.  If a user shuts down his Mac in the evening and restarts in at 7AM the next morning, do the three periodic maintenance scripts ever run in Mountain Lion?
    It's easy to run them manually in Terminal or even with with an Applescript that I wrote, but do they need to be run under the condition I posed above?
    Thanks.

    For those people stating that no one needs to run these scripts or that they're somehow dangerous, please reconsider before posting inaccurate things like that.
    I haven't seen anyone stating that the scripts are dangerous. Clearly, they aren't. They are, however, unnecessary if the system is rebooted every day. The only exception is the periodic daily script 100.clean-logs, which deletes symbolic links in /Library/Logs/CrashReporter to crash and panic reports in /Library/Logs/DiagnosticReports older than 60 days. The reports themselves are deleted by a different process. Conceivably, if this script didn't run for a long enough time, the boot volume might fill up with broken symlinks to deleted crash reports. How long would that take?
    Well, a symbolic link takes up 77 bytes of storage space. Storage devices, however, allocate space in minimum units of one sector, which is usually 512 bytes. Some of the newer 3 TB hard drives have a 4096-byte sector size. So let's make some worst-case assumptions. Your boot drive is 3 TB, and you have only 1% of that space free, which is 30 GB. You generate 100 crash reports a day -- those being only crashes of system processes, of course, not user processes, which are logged to a different place. So your volume is filling up with symbolic links at the rate of about 400 KB a day. At that rate, it would take only about 75 years to fill it up completely.
    So you're quite correct. If your system is always shut down -- not in sleep -- between the hours of 3:15 and 5:30 AM every day, you should manually run 100.clean-logs at least once every 75 years. Let's say once every 25 years, to be on the safe side. Thanks for pointing that out.
    Properly Maintain Macbook pro: Apple Support Communities

  • Do I still have to run maintenance & cron scripts?

    Do I still have to run maintenance scripts or does Apple take care of them? If I do is there an inexpensive effective app. to do this automatically for me? Thanks.

    If you machine is asleep when the periodic maintenance tasks are scheduled (3:15AM for daily, weekly and 5:30AM for monthly) they will be run shorly after your machine is wakes up.  They are launchd LaunchDaemons now.  Cron is no longer used for these.  Still, as with cron, the tasks will not be performed if the machine was off at the scheduled time (reference).

  • Running elevated scripts from SCVMM on a Hyper-V host

    SCVMM 2012 R2 conveniently lets me run scripts on hosts using the Run Script Command.
    When not using a runas account, the scripts are run on the host using the Local System account which seems to be unable to run elevated commands. In particular, I want to run the Get-VM Hyper-V cmdlet on the host, and this cmdlet does not work (or rather,
    returns an empty list) from a non-elevated Powershell.
    I don't want to disable UAC because I don't want want to weaken overall security on the host just for this particular scenario.
    Is it possible to use SCVMM's Run Script Command to run elevated commands on the host? Alternatively, can I get Get-VM to return the list of VMs even when run non-elevated?
    (In case it's interesting, I want to run Get-VM on the host rather than Get-SCVirtualMachine on SCVMM because I'm interested in the IDs of the SCSI controllers of the VM, and it seems that SCVMM and Hyper-V each return different IDs. If there's a way to
    get the Hyper-V-visible ID from SCVMM cmdlets then I won't need to run any script on the host at all).

    Hi
    May add this to your script:
    function Set-Elevation
       # Create a new process object that starts PowerShell
       $newProcess = New-Object System.Diagnostics.ProcessStartInfo "powershell";
       # Indicate that the process should be elevated
       $newProcess.Verb = "runas";
       # Start the new process
       [System.Diagnostics.Process]::Start($newProcess) | Out-Null
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Do we need to run catbundle.sql for ANY new db we create after CPU's?

    We're in the middle of reviewing the JAN2009CPU readme, and found a curiosity in the patch notes.
    - Our platform is Oracle 10.2.0.4 Enterprise Edition on Solaris 10 64-bit.
    In the Post-Patch instructions for the CPU, we see the following clause
    {color:#3366ff} ...
    3.3.5, "Post Installation Instructions for New and Upgraded Databases"
    These instructions are for both non-RAC environments and RAC environments
    when a database is created or upgraded after the installation of CPUJan2009.
    You must execute the steps in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for *any new database that was created* by any of the following methods:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    Upgraded databases require no post-installation steps to be executed.
    {color}
    I don't understand -- does this mean we have to do the following any time
    we create a new database from now on?
    - run dbca
    {color:#ff0000} - run '@?/rdbms/admin/catbundle.sql cpu apply'
    - check $ORACLE_HOME/cfttoollogs/catbundle/catbundle_CPU_&lt;SID&gt;_APPLY_&lt;TimeStamp&gt;.log for errors
    - run '@?/cpu/view_recompile/view_recompile_jan2008cpu'{color}
    I would have thought that the new SQL scripts under $ORACLE_HOME are already
    upgraded, so that we do not *have* to do any extra work on top of simply running
    dbca to create a new DB.
    I see a similar phrase in the CPU2008JUL (patch 7150470):
    {color:#0000ff} "You must execute the steps in this section (Section 3.3.2.1,
    "Loading Modified .sql Files into the Database") for any new database you create
    or any database upgraded to this release since the CPUJul2008 patch was applied."
    {color}
    .. AND CPU2008OCT (patch 7375644):
    {color:#0000ff} You must execute the steps ... for any new database you create or
    any database upgraded to this release since the CPUOct2008 patch was applied.
    {color}
    .. but the April 2008 CPU (patch 6864068) doesn't have these clauses.
    Can anybody clarify this issue? Have you created DB's after the JAN2009 CPU
    and not run the catbundle.sql, had any problems?
    Edited by: lrp on Feb 4, 2009 2:45 PM

    lrp wrote:
    We're in the middle of reviewing the JAN2009CPU readme, and found a curiosity in the patch notes.
    - Our platform is Oracle 10.2.0.4 Enterprise Edition on Solaris 10 64-bit.
    In the Post-Patch instructions for the CPU, we see the following clause
    {color:#3366ff} ...
    3.3.5, "Post Installation Instructions for New and Upgraded Databases"
    These instructions are for both non-RAC environments and RAC environments
    when a database is created or upgraded after the installation of CPUJan2009.
    You must execute the steps in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for *any new database that was created* by any of the following methods:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    Upgraded databases require no post-installation steps to be executed.
    {color}
    I don't understand -- does this mean we have to do the following any time
    we create a new database from now on?
    - run dbca
    {color:#ff0000} - run '@?/rdbms/admin/catbundle.sql cpu apply'
    - check $ORACLE_HOME/cfttoollogs/catbundle/catbundle_CPU_&lt;SID&gt;_APPLY_&lt;TimeStamp&gt;.log for errors
    - run '@?/cpu/view_recompile/view_recompile_jan2008cpu'{color}
    I would have thought that the new SQL scripts under $ORACLE_HOME are already
    upgraded, so that we do not *have* to do any extra work on top of simply running
    dbca to create a new DB.
    I see a similar phrase in the CPU2008JUL (patch 7150470):
    {color:#0000ff} "You must execute the steps in this section (Section 3.3.2.1,
    "Loading Modified .sql Files into the Database") for any new database you create
    or any database upgraded to this release since the CPUJul2008 patch was applied."
    {color}
    .. AND CPU2008OCT (patch 7375644):
    {color:#0000ff} You must execute the steps ... for any new database you create or
    any database upgraded to this release since the CPUOct2008 patch was applied.
    {color}
    .. but the April 2008 CPU (patch 6864068) doesn't have these clauses.
    Can anybody clarify this issue? Have you created DB's after the JAN2009 CPU
    and not run the catbundle.sql, had any problems?
    Edited by: lrp on Feb 4, 2009 2:45 PMIt's pretty explicit:
    *You must execute the steps* in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for any new database that was created <b><i><u>by any of the following methods</u></i></b>:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    So, if you create a database by any of the explicitly listed methods (all of which are creating a database from a backup that my have been made of a database that was not patched to that level) then you need to run the scripts. If you create a database by some other method (about all that is left is a command line CREATE DATABASE) then part of that creation will necessarily include running the necessary cat* scripts, which will already be at the correct level.

  • Reg: How to Run a Script File in WebLogic Server 10.3.3

    Hi WebLogic Experts,
    In our project we are using WebLogic Serve 10.3.3. I need to run one script file. could you please suggest me where should i need to place that script file in WebLogic Server 10.3.3 and How to run & stop that Script file.?
    please experts i waiting for your's reply..
    Thanks & Regards,
    Induja..

    1. You can put a command line into startWebLogic.sh to start your script file.
    2. In your proyect you can create a java class to run the script file.
    3. You can create a java class to run the script file an setup it like a startup class into weblogic server.
    4. You can create a java class to run the script file an setup it like a job scheduler into weblogic server.
    In what time you need run this script file?

Maybe you are looking for

  • How to submit a form in a web

    Hi, it's my first post in this forum and it's for asking a very rough problem. I want to log in a web which uses a form to authenticate. The page is: https://cv2008.uab.cat. I want that my program in java logs in and retrieves information from it (e.

  • Is there a way to prevent music from autostarting when connected to bluetooth

    Is there a way to prevent music from autostarting when connected to bluetooth Mike

  • ITunes keeps "losing" the filepaths to my library.

    My friend had an external hard drive on her computer, and every time she disconnected it, iTunes would lose her songs. So we copied all of her music to her hard drive, and put it in her iTunes folder. Everything was fine; all the file paths were corr

  • How do I lock clips on the timeline?

    Hi, I am compiling music videos, taking the best grabs from 6 to 10 takes of a song which the band played along with the studio recording of the song. The sound track is therefore the synch mechanism. I am lining all the takes up above each other in

  • Problem downloading some movies & videos into New 60G Video Ipod

    Our 60G seems to have a problem with some of the videos and movies. It has downloaded many videos fine, but some has been downloaded without sound. Everything plays in itunes fine though. Help?