Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Bug in softwareupdate from cron

Bug in softwareupdate from cron
Thread Tools
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status: Offline
Reply With Quote
Dec 8, 2005, 12:04 AM
 
Hello. When I run softwareupdate from cron on all my lab machines the update always hang up, the updateprocess just stays like that for days. But when I do it from the terminal myself, it works. I've taken a "snapshot" of where I hangs with "ps"

Code:
797 su 796 /usr/bin/su -c "/tmp/0/TemporaryItems/com.apple.SoftwareUpdate/iTunesX.pkg/Contents/Resources/InstallHelper" /Applications/iTunes.app/Contents/Resources/iTunesHelper.app 795 sh /tmp/0/TemporaryItems/com.apple.SoftwareUpdate/iTunesX.pkg/Contents/Resources/preinstall /tmp/0/TemporaryItems/com.apple.SoftwareUpdate/iTunesX.pkg / / / 688 /System/Library/PrivateFrameworks/Installation.framework/Resources/runner 683 /System/Library/PrivateFrameworks/DiskManagement.framework/Resources/DiskManagementTool -uuid EFC86EFA-66A7-11DA-AE5F-000D9341FF66 682 /usr/sbin/softwareupdate -i -a
So I think this is kinda strange ? When in no active tty (??, right way to say i t ?) it stops and stays there, at iTunesX.pkg's preinstall script. I've also included that script here:

Code:
#!/bin/sh if [ -e "$3/Applications/iTunes.app/Contents/Plug-ins" ] ; then /bin/rm -rf "$3/Applications/iTunes.app/Contents/Plug-ins" 2> /dev/null fi if [ -e "$3/Applications/iTunes.app/Contents/Resources/pt.lproj" ] ; then /bin/rm -rf "$3/Applications/iTunes.app/Contents/Resources/pt.lproj" 2> /dev/null fi if [ -e "$3/Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/Resources/pt.lproj" ] ; then /bin/rm -rf "$3/Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/Resources/pt.lproj" 2> /dev/null fi /usr/bin/su $USER -c "\"$PACKAGE_PATH/Contents/Resources/InstallHelper\" /Applications/iTunes.app/Contents/Resources/iTunesHelper.app" 2> /dev/null "$PACKAGE_PATH/Contents/Resources/InstallHelper" 2> /dev/null /usr/bin/su $USER -c "/usr/bin/defaults write com.apple.iTunesHelper FreshInstall 1" 2 > /dev/null exit 0
I would be VERY glad if someone could tell me what is going on ? And why this happens ?

I launch the update like this:
Code:
COMMAND_LINE_INSTALL=1; export COMMAND_LINE_INSTALL; /usr/sbin/softwareupdate -i -a


Also tried without the Bash variables above.

And yeah. It didn't use to behave like that. It's only with the new iTunes...
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2