• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell scripts not executing correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell scripts not executing correctly


  • Subject: Re: Shell scripts not executing correctly
  • From: Scott Russell <email@hidden>
  • Date: Thu, 15 Mar 2007 08:52:46 -0400

Hello Cormac,

A couple of things to try ...

First, whether it's overkill or not, I always fully address the plist I want to write to:
defaults write /Library/Preferences/com.domain.appname ....

Second, does the choice of quoting matter?  (Probably not since you say this works when you run it manually)
defaults write /Library/Preferences/com.domain.appname installertestkeyPOSTFLIGHT 'installerteststringPOSTFLIGHT'
(no quotes for the property, single quotes for the value)

Finally, have you tried explicitly setting the value type?
defaults write /Library/Preferences/com.domain.appname installertestkeyPOSTFLIGHT -string 'installerteststringPOSTFLIGHT'
`man defaults` lists: -string, -data, -int, -float, -bool, -date, -array, and -dict

I don't know if any of those will help for certain, but they're avenues I'd explore if I were having this trouble.

Best wishes,
Scott
-- 
Scott Russell

IT Support Engineer
Arts & Letters Computing, Distributed Support Services,
Office of Information Technologies, University of Notre Dame
Instructor of Horn, University of Notre Dame and Saint Mary's College
Assistant Horn, South Bend Symphony Orchestra

234 Decio Hall
574-631-7021
email@hidden
http://www.nd.edu/~srussel2/




On Mar 15, 2007, at 7:21 AM, Cormac Daly wrote:

defaults write com.domain.appname "installertestkeyPOSTFLIGHT" "installerteststringPOSTFLIGHT"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Shell scripts not executing correctly (From: Cormac Daly <email@hidden>)

  • Prev by Date: Shell scripts not executing correctly
  • Next by Date: Re: Shell scripts not executing correctly
  • Previous by thread: Shell scripts not executing correctly
  • Next by thread: Re: Shell scripts not executing correctly
  • Index(es):
    • Date
    • Thread