i have a script i have created to do this but i keep getting a error code when i try to use casper remote to push it to a test machine.
The script does the following. ```
!/bin/bash
Sudo dseditgroup -o edit -n /Local/Default -u admin -p -a printerusers -t group lpadminn
exit 0
```
When i push this out it gives a error.
Sending Wake On LAN command...
Opening SSH Connection to 192.168.17.182...
Authenticating...
Successfully authenticated.
Verifying Computer's Identity...
The MAC Address has been verified.
Checking Operating System Version...
Running Mac OS X 10.8.4 (12E3067)
Verifying /usr/sbin/jamf...
/usr/sbin/jamf is current (8.71)
Verifying /usr/sbin/jamfvnc...
/usr/sbin/jamfvnc does not exist.
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
Switching servers for load balacing...
Executing Policy 2013-08-29 at 8:42 AM | tekhelp | 1 Computer...
Creating directory structure for /Library/Application Support/JAMF/Downloads/
Downloading name of server where script is located.
Running script printer4.sh...
Script exit code: 2
Script result: /private/tmp/printer4.sh: line 1: syntax error near unexpected token `newline'
/private/tmp/printer4.sh: line 1: `'
Submitting log to name of server where casper is located.
Finished.
If any one can help me trouble shoot this that would be great. I have only started to create shell scrips.
