• 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: Output to Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Output to Terminal


  • Subject: Re: Output to Terminal
  • From: Lora Lozano <email@hidden>
  • Date: Wed, 19 Apr 2017 12:27:29 -0700

Thank you for your suggestion, Stephane. It definitely does what I want it to do, but since it also displays the broadcast text, I don’t think it’s a solution I can use.

Thanks,
Lora

> On Apr 19, 2017, at 3:43 AM, Stephane Sudre <email@hidden> wrote:
>
> Maybe not a good suggestion (but at least it does output something to
> the terminal(s)):
>
> #!/bin/sh
>
> /bin/echo "This is an installation announcement." | /usr/bin/wall
>
> exit 0
>
> On Tue, Apr 18, 2017 at 1:48 AM, Lora Lozano <email@hidden> wrote:
>> Hi,
>>
>> I have a postinstall script in my package. I’d like for it to echo something to the terminal if the user runs
>>
>> sudo installer -pkg <pathToPkg> -target /
>>
>> I see that the echo command in my postinstall script outputs to /var/log/install.log, and I can have it echo to a separate file also by using
>>
>> 2>&1 | tee -a "$logFile”
>>
>> However, can I output it to Terminal?
>>
>> Also, is there a way to pass a custom parameter to the installer command to be used by the postinstall script?
>>
>> Thanks in advanced.
>>
>> -Lora
>> _______________________________________________
>> 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
>
>
>
> --
> Packaging Resources - http://s.sudre.free.fr/Packaging.html

 _______________________________________________
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

  • Follow-Ups:
    • Re: Output to Terminal
      • From: Stephane Sudre <email@hidden>
References: 
 >Output to Terminal (From: Lora Lozano <email@hidden>)
 >Re: Output to Terminal (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Output to Terminal
  • Next by Date: Re: Output to Terminal
  • Previous by thread: Re: Output to Terminal
  • Next by thread: Re: Output to Terminal
  • Index(es):
    • Date
    • Thread