Do shell script oddity
Do shell script oddity
- Subject: Do shell script oddity
- From: "John C. Welch" <email@hidden>
- Date: Wed, 31 Mar 2004 11:18:27 -0600
So I'm trying to make running softwareupdate easier without paying the ARD
tax.
I can automate the process of getting a list of the updates from a remote
machine, but when I try to run the update I get some odd results, and I'm
not sure why. The instruction is:
echo apassword | ssh amachine.local sudo softwareupdate --install
AirPortSW-3.3
The result is:
"Software Update Tool
Copyright 2002-2003 Apple Computer, Inc.
Your software is up to date."
However, running
do shell script "ssh amachine.local softwareupdate -l"
On the same machine gives me:
"Software Update Tool
Copyright 2002-2003 Apple Computer, Inc.
Software Update found the following new or updated software:
* AirPortSW-3.3
AirPort Software, 3.3, 8752K [restart]
* iSightUpdater102-1.0.2
iSight Update, 1.0.2, 920K"
I *think* it may be a oddity in softwareupdate, because running the
echo apassword | ssh amachine.local sudo softwareupdate --install
AirPortSW-3.3
From terminal also tells me that my software is up to date.
john
--
"Getting married to have sex is like buying a 747 to get free peanuts."
Jeff Foxworthy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.