OS X :: Running Terminal Commands Without Logging In?
Jan 22, 2009
I know on windows allows you to run batch files without actually logging into the OS. This allows you to put an base image onto a PC and use batch files to change settings, place on active directory, and other things without having to log in.
How do I do this with a mac? I want to be able to run 2 command line commands, one after the other once the other is finished, and then add it to Active directory. Would I do this in perl? and how do I get it to run without logging in so I can start it and then move on to other stuff?
Is there any way to have Terminal automatically run a command each time it is opened? I want to always have my background as my screensaver with the command Code:/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background & and I have made an alias for the command so that I can just type in ss, but I have to type it in every time I open up terminal. I'd like to have Terminal start at login in the hidden state and run my screensaver background command automatically.
I'm trying to change MTU settings in my router using terminal MacOs 10.5.8. eMac 1GHz.All goes well till I get to saving settings. "saveall" or "SaveAll" I get "Invalid interface name specified"It's probabably not saving settings.
I found some information in another thread that instructed one to write some commands in terminal but I have never used terminal and have no idea what I actually need to write.Can anyone please advise me on how to translate the instructions into what exactly should be typed into terminal?Spaces, special characters, anything?All I know how to do is start the app and then I am faced with some text and characters that are already on the screen.The instructions were:Open a Terminal and run some commands:cd /replace/this/with/the/path/to/contents/of/extracted/zip/file/ #this path probably is Downloads/360ControllerInstallsudo sh 360ControllerInstall.sh
Having some sort of a glitch on my Safari 5.0.2. It turns that if i only have a single window open, the tab will not hide but it will remain. On my macbook though it behaves normally, meaning wear there is only one page on safari, the tab will be hidden.Is there any way i could possibly make my safari behave normal again? Any nifty terminal commands?
I looked up an old thread on clearing recently viewed quicktime player videos.The advice recommended was to enter the following three commands into terminal.After entering the three commands the quicktime recent files were cleared. Uninformatively then finder would freeze up and give me errors.how to undue these commands?
Basically the title says pretty much everything. just want a way in which i can undo commands i did on terminal. and if restarted the macbook does the job?
I've just entered the world of terminal commands. I've only done a few so far. I've also heard that they can cause some big problems with my Mac, is that true?
What is the best way to run a terminal command when logging in? And by �best� I mean �fastest.� I�ve been encapsulating my commands in an Applescript, but it�s terribly slow to load, and I�m hoping there�s some UNIX back-end I can use to speed things up.
Specifically, I want to run a shell script that I wrote. It decrypts some folders inside my Home directory so I can use them (this part works seamlessly, I just need it to auto-run itself).
1) I had two user accounts: one standard, one admin. I had "hidden" the admin account from prying eyes using some Terminal commands (see here if you're interested some months later, I enabled the Open Firmware Password (hence, I can no longer boot into single user mode, boot from CD, etc)3) at some point, I inadvertently reinstalled OS X (don't ask... or do, I'll explain if necessary)4) when logging in, I ONLY have my standard account. My hidden admin account seems to be gone. OS X won't even accept the admin login/pwd when attempting to execute admin-only commands from within the standard account
My macbook 2006 recently would not boot properly. By that i mean it takes about a good 5 minutes to boot to a messed up looking desktop.
Before i restore the system i need to get some files off of the machine. (The gui side freezes when i try to drag and drop).
I can boot into single use mode and use terminal but i do not know how to do the command mv /documents...etc but i don't know what drive my usb stick is or that it is mounted.
I've messed up my MacBook and it's now running really slowly (even just clicking on icons, going into folders and suchlike) and I need to find out the best way to sort out the following issue:
I wanted to back up my pictures and (now realise, foolishly) moved them from iPhoto to my desktop so I could transfer it to an external hard drive. It was hanging and had the spinning beachball. This was 7 days ago; it looks like it's done it and is now running very slowly, I know it's lagging because the clocks shows it is sometimes 10 minutes slow and it's whirring and doing something.
I had unplugged the hard drive in case it was slow due to that and from researching other forums for advice I have been able to check the Activity Monitor - the CPU is fine but the disk space is almost zilch (all blue and no green). I now want to delete the pics off my desktop as I'm sure this is the root of the problem. Is there a simple/easy way or do I really have to be patient, delete and trash them one by one?
As you can tell I am not a full on techie but understand simple instruction, so please if you can help me resolve this, I'd be very grateful.
I forgot my password on my iBook G4 running OS X none of the keyboard commands work. commands does not put me into single user mode.In fact none of the command keys work.
My mail is running very slowly and it looks as if I have more messages saved and coming in that I believe I actually have. I also have a message that reads "connection logging enabled" at the top that seemed to appear about a month ago and I don't know what it means. Any reason for mail running slow, mail messages duplicating multiple times and for trash not emptying as it should?
Info: MacBook Pro (13-inch Late 2011), OS X Mavericks (10.9.4)
After I logged out of my account, I logged back in to see nothing on my desktop except for "Macintosh HD." I click on it and noticed that my home folder is mounted as a disk image under "Places." By "home folder" I meant the folder found at MacintoshHDusers ame-of-folder. I did not shutdown and login again, I logged out back to the main login screen, then logged in again under the same account. Shutting down the computer before logging in to the same account prevents this from happening, but logging out then logging back in causes it to happen.
I've use a terminal command to create a SOCKS proxy through my ssh server (ex. ssh -D 2008 -l user server.here), to which I am then prompted to enter a password, and everything is connected. For the sake of ease of use (as I need to do this frequently), is there any way I can make a dock icon, or something along those lines, so I can just click it, it runs the command, I enter a password (or maybe even not?) and it's all set? I have tried setting up a workflow in automator to run a shell script, but it is unsuccessful, leaving me with "Run Shell Script failed: Pseudo-terminal will not be allocated because stdin is not a terminal."
Trying to run the following command as a Launch Agent (OS X 10.7): /usr/bin/find /Users/username/Documents/Dropbox/Public -type f -mtime +2 -print0 | xargs -0 rm -rÂ
Created a plist file (reproduced below) and saved to ~/Library/Launch Agents, but the command isn't executed either at the specified time or when the agent is loaded via launchctl. If I change the command to a simple Applescript test: osascript -e 'tell Application "Finder" to display dialog "hello"'Â
It runs correctly as a launch agent when loaded and as the specified time Which means there's something wrong with the first command (find). But the command runs as written when executed manually in the terminal. Â
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Anybody see this before? I opened up Terminal.app and the window is completely blank. There is nothing in it whatsoever. Looks as if bash never started. The title bar simply says "Terminal — login — 80x24". I can type whatever I want in the Terminal window like it's a text document and nothing happens. If I restart the computer, this seems to fix the problem, but it seems to only be a temporary fix as the issue happens again soon after.
I'm trying to do something in terminal, and it asks for my password. I press a letter on my keyboard, and nothing appears. I am in the right window and everything, terminal just doesn't react to my typing. However, when I click enter, it says 'Sorry,try again'. So it does react to the enter key.
I'm running Symantec Backup Agent on our mac osx server. I start the agent in the terminal (./agent.be). It returns a notification that it started the service, however, it doesn't return to the prompt. Closing the terminal gives a warning that the process will be closed if the terminal is closed. Closing it does kill the process. Ctrl+c to return to the prompt also kills the process. So it's as if once the process is started in the terminal, nothing can be altered.
I am not much of a mac guy so please forgive me if this is a stupid question.
Anyone have any advice on how to handle this so the process is ALWAYS running?
I'm on a standard user account and I would really like to install icalbuddy which is a terminal app. When I install apps normally I simply have to provide a admin name and pw, but this doesn't work when it is a terminal app because it requires that the 'su' command be run.
So I thought that I could run terminal as admin through 'su - admin' and then install. But of course the admin account doesn't have access to the user folder where the installer is located. I just can't win.
terminal isn't working. It's not accepting any of my commands or even recognizing them as such. And it just opens up to a blank terminal window. Correct me if i'm wrong but isn't it supposed to open usr/bin/login?
I can power it on but it won't accept any commands. The only way to shut it down is to hold in the power button.Its a 4 yr old IMAC running snow leopard
Im new to the mac and I'm looking to find out if there is a keyboard shortcut I can use to have my macbook read out selected text to me other than me having to go the the services menu