Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old May 10, 2012, 11:19 AM   #1
JGruber
macrumors 6502
 
Join Date: Feb 2006
Login Script, using WGM

Ok, so I'm having a hard time getting this stupid simple login script to work.

In WGM, under the computer groups > Pref > Login > Scripts, I've added a login script.

Below is what I am adding to the script

Code:
#!/bin/bash defaults write -app iMovie allowNV -bool true
When I execute the script locally on my laptop, I get the following error in terminal

Code:
Jeff$ /Users/Jeff/login ; exit;
/usr/bin/defaults: /usr/bin/defaults: cannot execute binary file
logout
I've done the following to make it executable
Code:
chmod +X /path/to/loginscript
I can't set the script to login for each account, because the accounts are network based, and on 37 iMacs, with 125 students a day, the above way is a must for me.
__________________
17" uMBP, 3.06 GHz,8GB Ram,512GB OCZ SSD, 24" LED Cinema Display, 16GB iPhone 3G
JGruber is offline   0 Reply With Quote
Old May 10, 2012, 12:35 PM   #2
kryten2
macrumors 6502
 
Join Date: Mar 2012
Location: Belgium
Code:
#!/bin/bash
defaults write
http://en.wikipedia.org/wiki/Shebang_(Unix)
http://developer.apple.com/library/m...efaults.1.html
kryten2 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC