Having your computer automatically type in a command on terminal on restart

Hi, I am having trouble with terminal. I have a command that i use on my computer that I use and have to retype in every time on restart. they are chmod commands. I use two of them. Is there any way to either save them or have them entered into terminal automatically. It is getting quite annoying writing the codes in every time I use my computer.
Thanks, Michael

Do you mean at restart? or at login?
There are different approaches to each.
If you mean restart then you should write your commands into a shell script file and launch that via launchd by creating a .plist in /Library/LaunchDaemons
This will execute the script automatically (and silently - Terminal.app doesn't even come into the equation here).
You can also do the same thing if you just need it at login, but at that point it's probably just easier to save the shell script and drop it into your Login Items (System Preferences -> Accounts -> (your account) -> Login Items) This will then open as soon as you login to the system.

Similar Messages

  • TS4006 when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"

    when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"
    DONT WORRY EVERYONE, FOUND THE ANSWER I NEEDED FROM ANOTHER POSTING - THANK YOU

    Welcome to the Apple Community.
    You don't need to do anything, you have chosen to back up to iCloud instead of iTunes.
    Being able to back up to the cloud can be very useful, especially if you don't have access to a computer or have infrequent access to one, however unless you specifically need to use iCloud for back up, you will find backing up to iTunes significantly more convenient and possibly more reliable.
    More about iCloud v iTunes Back Up

  • After downloading iphone pictures to desktop, itunes won't open.  I downloaded itunes 10.6 (64bit) but get "Do you want the following program to make changes to your computer?" Apple Inc.  I've clicked "yes", restarted the computer, and still no luck.

    after downloading iphone pictures to desktop, itunes won't open.  I downloaded itunes 10.6 (64bit) but get "Do you want the following program to make changes to your computer?" Apple Inc.  I've clicked "yes", restarted the computer, and still no luck.

    I also have the same problem, but the Software Updates tool doesn't recognise that Quicktime is out of date. Have you tried downloading Quicktime 7.7 Leopard from http://support.apple.com/downloads/#quicktime as this worked for me...?

  • TS3992 I tried turning on my icloud backup and it said your iPod will no longer backup to your computer automatically when you sync with iTunes. Help?

    Help please???

    That is correct. You can still backup to iTunes manually. See:
    iOS: How to back up and restore your content

  • Having your computer to stop listening to a particular port....!

    Hi...guys...!
    I have my computer listening to a particular port (tcp). But, my question is: how do I make it stop listening to that port...??
    Any help...please...???

    Just how does this question relate to java?Probably another one of those "I want to create a Java firewall" fools.

  • Sorry, we are having some temporary server issues. You can work off line if you plan to insert pictures from your computer

    We have about 200 users that connect to three terminal servers. On the servers we have Office 2013 installed. Several users are stating that when they attempt to search for templates or insert Online Pictures, they are getting error messages of "Sorry,
    we are having some temporary server issues. You can work off line if you plan to insert pictures from your computer"
    Remember, they are connecting to a terminal server, all have roaming profiles, and for some users this works fine.
    We've Googled the error message and found no help. A lot of responses was to reset the IE settings, which we've tried to no avail.
    Also as a test, we took one of the users that was having the issue and deleted their profile. When they logged back on the server, the same problem occurred again.
    We're currently at a loss as to why it works for some users and not others?
    Any ideas out there?

    You can refer to this link and find the possible solution which is to delete the offending registry key:
    HKCU\Software\Microsoft\Office\15.0\Common\Internet\WebServiceCache\AllUsers\office15client.microsoft.com
    http://angrytechnician.wordpress.com/2013/05/15/office-2013-error-sorry-we-are-having-some-temporary-server-issues/
    There we can also find information about deploying logon script to all roaming profile users to resolve this issue.

  • "You need to restart your computer" over and over

    So I just got a Powerbook G4 1.5GHz, and when I ran software updates, it installed a whole lot of things (like new iTunes, Mac OS X 10.4.4 I think). Now, when I start up my computer, it says, "You must restart your computer." So I do. Now, after 30+ restarts, I'm freakin' out... I feel like Sisyphus... any help would be greatly appreciated.
    Powerbook G4 15" 1.5GHz   Mac OS X (10.4)   Brand new, factory except for software updates

    OK, this is a kernel panic. It simply means that, at the point the message is appearing, the computers core (kernel) is receiving instructions it can't understand.
    I would suggest that you first start up the computer while holding command-S. When the text stops scrolling, enter this command:
    fsck -yf
    Repeat it until the command's final message indicates a lack of problems.
    Then type "reboot", and see what happens.
    EDIT: I see that Allan has posted a link to The X Lab. This is a great resource, but I'm leaving my post as a quick start.

  • "You need to restart your computer" message keeps appearing

    After am done with my computing session, and try to shut down my computer often times, this being the 7th, the machine will not shut down but instead it will display the message "You need to restart your computer...". After i do the restart, a message appears says something like: Mac OS X failed unexpectedly. The problem is that the OS has not failed unexpectedly; i tell it to shut down but it doesn't. Would anybody have a clue as to what is causing this problem?
    Notes:
    No non-native software has been installed
    Have not renamed system folders
    Thanks guys!

    Please help me interpret my panic.logs.
    Mon Feb 19 11:53:14 2007
    panic(cpu 0 caller 0x0035AD9B): mbuf address out of range 0xc00ffff
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x13e53ab8 : 0x128d08 (0x3c9a14 0x13e53adc 0x131de5 0x0)
    0x13e53af8 : 0x35ad9b (0x3ea14c 0xc00ffff 0x13e53b38 0x2020da)
    0x13e53b18 : 0x239999 (0x1 0x2 0x13e53b48 0x25d0ac00)
    0x13e53c28 : 0x236d0a (0x2c5ba8c 0x25d0ac00 0x1 0x506a8c0)
    0x13e53e08 : 0x22d264 (0x25d0ac00 0x14 0x13e53e58 0x1a06d8)
    0x13e53e48 : 0x22ecc5 (0x25d0ac00 0x14 0x6 0x0)
    0x13e53f58 : 0x21c441 (0x25d0ac00 0x25d0ac00 0x44407c 0x1a1f6f)
    0x13e53f98 : 0x202cfe (0x2c2e404 0x25d0ac00 0x25bb9812 0x1)
    0x13e53fc8 : 0x19a6ec (0x0 0x0 0x19d0b5 0x2f21828) Backtrace terminated-invalid frame pointer 0x0
    Kernel version:
    Darwin Kernel Version 8.8.3: Wed Oct 18 21:57:10 PDT 2006; root:xnu-792.15.4.obj~4/RELEASE_I386
    Tue Mar 6 18:12:09 2007
    panic(cpu 0 caller 0x001A429B): Unresolved kernel trap (CPU 0, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x4d860739, CR3: 0x00dd4000, CR4: 0x000006e0
    EAX: 0x4d860709, EBX: 0x1b040709, ECX: 0x403d0840, EDX: 0x0dba7880
    CR2: 0x4d860739, EBP: 0x1405bd28, ESI: 0x403c7880, EDI: 0x125932c8
    EFL: 0x00010202, EIP: 0x00a0acd9, CS: 0x00000008, DS: 0x00460010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x1405bae8 : 0x128d08 (0x3cb134 0x1405bb0c 0x131de5 0x0)
    0x1405bb28 : 0x1a429b (0x3d0e4c 0x0 0xe 0x3d0670)
    0x1405bc38 : 0x19ada4 (0x1405bc50 0x0 0x1405bc78 0x127ee3)
    0x1405bd28 : 0x9e3e57 (0x126b9004 0x403c7880 0xdba7880 0x4d860709)
    0x1405bf08 : 0x39a463 (0x125932c8 0x2b23880 0x1 0x2797cec)
    0x1405bf58 : 0x399635 (0x2b23880 0x0 0x1405bf78 0x4b0038)
    0x1405bf88 : 0x39936b (0x2b350c0 0x3bbf43c 0x989298 0xffffffff)
    0x1405bfc8 : 0x19ac1c (0x2b350c0 0x0 0x19e0b5 0x3a56040) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.driver.AirPortAtheros(221.46)@0x9b3000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.1)@0x6f2000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5de000
    dependency: com.apple.iokit.IO80211Family(151.1)@0x996000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
    Thu Mar 8 01:27:20 2007
    panic(cpu 0 caller 0x001A429B): Unresolved kernel trap (CPU 0, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0xde7f5bd5, CR3: 0x00dd4000, CR4: 0x000006e0
    EAX: 0xde7f5ba5, EBX: 0xabfe0ba5, ECX: 0x402d3e18, EDX: 0x0dab6130
    CR2: 0xde7f5bd5, EBP: 0x13ff3d28, ESI: 0x402cb130, EDI: 0x1258f2c8
    EFL: 0x00010202, EIP: 0x00a0acd9, CS: 0x00000008, DS: 0x00000010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x13ff3ae8 : 0x128d08 (0x3cb134 0x13ff3b0c 0x131de5 0x0)
    0x13ff3b28 : 0x1a429b (0x3d0e4c 0x0 0xe 0x3d0670)
    0x13ff3c38 : 0x19ada4 (0x13ff3c50 0x0 0x13ff3c78 0x127ee3)
    0x13ff3d28 : 0x9e3e57 (0x126b9004 0x402cb130 0xdab6130 0xde7f5ba5)
    0x13ff3f08 : 0x39a463 (0x1258f2c8 0x2b2cc80 0x1 0x26368b0)
    0x13ff3f58 : 0x399635 (0x2b2cc80 0x135eb4 0x0 0x26368b0)
    0x13ff3f88 : 0x39936b (0x2c582c0 0x275ef40 0x450 0x1203)
    0x13ff3fc8 : 0x19ac1c (0x2c582c0 0x0 0x19e0b5 0x2c67680) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.driver.AirPortAtheros(221.46)@0x9b3000
    dependency: com.apple.iokit.IONetworkingFamily(1.5.1)@0x6f2000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5de000
    dependency: com.apple.iokit.IO80211Family(151.1)@0x996000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
    Thanks.

  • OS X Yosemite installation 'OS X could not be installed on your computer'

    I have a 2011 MacBook Pro. Was on OS X Mountain Lion. Decided to install OS X Yosemite everytime I try it eventually comes up with a warning message - OS X could not be installed on your computer. File system verify or repair failed. Quit the installer to restart your computer and try again.'
    Clicking retry just repeats the process.
    If I try to go back to the old system by quitting the installer and then clicking startup disk and try to restart I get a message saying 'You can't change the startup disk to the selected disk. Startup disk could not gather enough information on the selected disk.
    Help!

    How large is your HD and how much space do you have left?
    Run OS Recovery
    Boot up from your computer by holding down the command+r keys.  This will take you to the recovery drive.
    Select Disk Utility & hit Return. 
    In Disk Utility select the HD on the left & click on Repair Disk (bottom right).
    Prior to upgrading an OS, you need to first make sure your system is in tip top shape and that you meet all the newer OS system requirements.

  • OS X (Yosemite) could not be installed on your computer

    The attempt was made on a '09 Macbook Pro to go from 10.6.8 to Yosemite.
    Yosemite downloaded but will not install.  The following message shows:
    OS X could not be installed on your computer
    File system verify or repair failed.
    Quit the installer to restart your computer and try again.
    When I do quit the installer and restart, it eventually brings me back to where I started.
    I can open disk utility, but cannot repair disk permissions or repair disk after running either verifies on the HD.
    When I reboot and hold down Command-R, it goes straight back into the installer.
    Any suggestions for completing the Yosemite install?

    How large is your HD and how much space do you have left?
    Run OS Recovery
    Boot up from your computer by holding down the command+r keys.  This will take you to the recovery drive.
    Select Disk Utility & hit Return. 
    In Disk Utility select the HD on the left & click on Repair Disk (bottom right).
    Prior to upgrading an OS, you need to first make sure your system is in tip top shape and that you meet all the newer OS system requirements.

  • Hi pls help me my MacBook pro is x could not be installed on your computer

    Hi pls help me my MacBook pro is x could not be installed on your computer

    OK - with that information I can help.
    Reboot your computer and hold down the Command and R keys. This will take you to your Lion Recovery partition. Select the Macintosh HD partition (or whatever you've named your start-up drive) and first verify it. Errors will probably come up. Then choose Repair. After the repair you should be able to reboot and install Mountain Lion.
    Call back with any problems...
    Clinton

  • I have set up two users, one for myself and one for children.  The computer automatically logs in for the children with no password required.  When the children go to spotlight and type in a search criteria all of my files show up.  How do I prevent this?

    I have set up two users, one for myself and one for children.  The computer automatically logs in for the children with no password required.  When the children go to spotlight and type in a search criteria all of my files show and open up.  How do I prevent this?

    Log in to your account, and move all your files to your home folder. No other users should be able to access them there and they won't show up with a Spotlight search.
    Make sure your kids' account(s) do not have admin privileges.

  • How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!

    How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!
    I want to know how to create a backup file (because I'm pretty new with itunes, and it's hard to use it for me still), how to store my app data/media/videos, etc. And how I can retrieve them back when I'm done with the app I tried on my friend's computer.
    If anyone can help, it'd be great! Thank you so much!

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

  • How to get internet on your ipad without having to hook up a ub cord to your computer

    How do you get internet access on your ipad without having to hook up your ub cord to the computer

    iPad is a WiFi and/or 3G device.
    In order to use it as the wireless device it was intended, the easiest methods are either buy a WiFi router and if your computer is lacking any type of WiFi capability, you hook up your Internet connection directly to the router, then another wired Ethernet connection to your computer.
    You'll need to configure the router via the supplied software for your computer or supplied instructions.
    Once the router is set up, you should be able to turn on the wifi connection in the Settings app on your iPad.
    Your iPad should see the new wifi signal. Follow any instructions that follow to allow you to connect to the WiFi signal and you should be good to go to be able to use the internet and check your email wirelessly on your iPad.
    If you computer has WiFi capability already, instead of purchasing a router, you can purchase an Apple Airport Express. Plug it in to the wall, hook your internet connection to this. Install the Airport Express software to your computer. Configure the AE and your computer to pick up the AE Wifi signals via both the AE software and network software on your computer.
    This way both your computer and iPad can share the wifi signal from the Airport Express.
    If you own a Mac, there is a an easy procedure for setting up and using an Airport Express with both iPad and Mac.
    http://manuals.info.apple.com/en_US/AirPort_Express_Setup_Guide.pdf

  • Is there a way to put a large amount of music on your iPod without having to keep all the files in iTunes on your computer as well? I want to put my entire music collection (including cds) on my iPod but don't want to take up the space on my computer.

    is there a way to put a large amount of music on the ipod without having to keep all the files on itunes as well? I want to use my ipod as an externa drive and put all of my music on it without taking up the space on my computer. I also don't want to lose all my files everytime I plug ipod into my computer. Is this possible? Is there a way to avoid using itunes and only use the ipod as an external drive?

    You cannot put music onto your iPod without using iTunes, that what iTunes is for.
    It's also not a good idea to wipe the music from your computer and having it only on your iPod. We see countless posts here from people who have done just that - and then lost everything when the iPod needs a Restore. Even if you never need to Restore your iPod, what happens when you eventually replace the iPod? You'll be back here asking how to get the music from one iPod to another. That's not easy to do, we see countless posts about that too!
    A much better idea is to buy an external drive (a proper external drive, not simply an iPod) and put your large amount of music onto that drive. Then point your iTunes Library to that drive. However, you need to remember two things:
    You still need a backup of that Library.
    Using an external drive as your iTunes Library means that the drive must be connected and ready to read before starting your iTunes programme. If it isn't, then iTunes will look on the C: drive - and you will find no music in your Library. (Once again, lots of posts about that as well!)

Maybe you are looking for

  • My ipod nano 3rd Generation has just stopped working with no warning signs!

    It has a black blank screen and is unresponsive to charging when plugged into a USB port and a standard USB mains powered charger that came with my iphone. I have tried pressing the menu and centre button and nothing happens. Please help if possible.

  • APP posting

    Hi Experts, I would like to know one thing...please help... When we make payment run through F110 for say 20 vendors, system posts 20 different documents in Bank GL. Can there be any settings through which we can get only one document posted in Bank

  • Acrobat 7 installation file missing

    I have to re-install my Adobe Acrobat 7 and when I do, the installation sticks at trying to install the kozgopro-medium.otf file. An error box comes up and says that its not able to locate the file. How do I overcom this to complete the installation?

  • How can i change my JAVA card life cycle state to OP_READY?

    I found the below script in this link and run it via `GPShell` on my java card and now I can't run `gpj -list` in `GPJ`! My questions: 1- What is this code for? changing Card Domain Manager status from OP_READY to Secured? 2- Why I can't find anywher

  • Error when building the Java pricing userexit manual code

    I went throught the manual for the pricing userexit manual... it tells you to ignore the errors when you do an ant build but I want to remove all the errors since they dont let the rest the code compile.... where are the jars for these errors:  [java