Skip to main content

We are trying to get the Symantec live update script running from the
resource kit. When we run the script through 'unix commands' through ARD it
runs normally. But when we push the script through Casper it bombs out
with...
Preparing Management...
Executing Policy 2010-05-10 at 12:01 PM | jwojda | 1 Computer...
Mounting afp://srshofmacdply01.kih.kmart.com/CasperShare to
/Volumes/CasperShare 1...
Running Script zzrunSAVLiveUpdate.sh...
Script Exit Code:126
Script Result: sh: /private/tmp/zzrunSAVLiveUpdate.sh: /bin/sh
if: bad interpreter: No such file or directory
Unmounting file server...
Enforcing Management Framework...
The Management Framework will be enforced as soon as all Policies are done
executing.



We set the script to Executable, but it won't work on the test boxes. We
also can't run it locally through sudo either.



Script as follows...



#!/bin/sh
if [ -f "/Applications/Symantec
Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate" ]; then
echo "Running LiveUpdate..."
/Applications/Symantec
Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate -update LUal
-liveupdatequiet YES -liveupdateautoquit YES
else
echo "Error: Symantec LiveUpdate was not found on this machine."
exit 1
Fi

An error 126 indicates permissions problems. But, I see you mounting locally as "/Volumes/CasperShare 1" Do you have something else already mounting the CasperShare as a different user? I run into this when I try and run something locally on my machine and (stupidly) have a volume on the same server mounted as a user that doesn't have access into the CasperShare.



j



--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436


On 5/10/10 12:13 PM, "Wojda, John" <john.wojda at searshc.com> wrote:

#!/bin/sh
if [ -f "/Applications/Symantec
Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate" ]; then
echo "Running LiveUpdate..."
/Applications/Symantec Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate
-update LUal -liveupdatequiet YES -liveupdateautoquit YES
else
echo "Error: Symantec LiveUpdate was not found on this machine."
exit 1
Fi


Throwing this out as an alternative:



I just take this part:



/Applications/Symantec Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate
-update LUal -liveupdatequiet YES -liveupdateautoquit YES


and put it into a scheduled task in the JSS, applying it to all my
workstations. It's simpler and works fine.



This avoids maintaining a script, avoids permission issues, etc.



--



William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


Is there any way to suppress the icon from launching in the dock when using this scheduled task?



Thanks
Allen


Hi Patrick!
On 5/11/10 7:36 AM, "Bachuwa, Patrick" <Patrick.Bachuwa at searshc.com> wrote:



Whether you're calling the SAV command using a shell script or as a task in
Casper, the time to update will be the same. It's the same command either
way, just invoked differently.



Does that give you what you're needing to know?



--



William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


I ran it and it doesn't seem to run the update, I waited for an hour and ran it manually so I know the script didn't run it.



Patrick Bachuwa
Client Technical Services
Sears Holdings Corporation
Michigan Campus
3000 W. 14 Mile Road
Royal Oak, MIĀ  48073-1717
Phone: 248 637-0350
Patrick.Bachuwa at searshc.com


These are my settings under Management tab --> Scheduled Tasks in the JSS:
On 5/11/10 9:51 AM, "Bachuwa, Patrick" <Patrick.Bachuwa at searshc.com> wrote:



Display Name: Daily SAV Update - Desktop
Run as User: root



Run Command: '/Applications/Symantec
Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate' -update LUal
-liveupdatequiet YES -liveupdateautoquit YES



Minute: On the hour
Hour: 1 AM
Day: Every Day
Month: Every Month
Randomize Execution By: 1 Hour



Scope: All Desktops



Once you set the task, you'll need to make sure your machines are receiving
the new task. They should receive it the next time they login/logout/startup
when "Enforce Management Framework" is execute, however, you can run the
JAMF command line on each machine to update them immediately:



sudo jamf checkForTasks



Hope this helps!



--



William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


Reply