site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CFIQ70R8UUW3p0DtFP1ETnYL7AMq5hGTaZ1Xg71FDt8=; b=MHpWpeY3WpMoEkAtoyuAVY0ko2M+ahhBxRnkWr/I9aqd/Hh/mM6+MGvbAKO3OhL1QO U1YtBzqpygxjILtYr1ouPhjInp8ClpbPUojPk1uz7c1VgTaBSTbAJL/Lf2ES+9gNEPtE BQZzNumaOvTLB93soF0nuVUnVPAl6KIL0JHNT2qWt1WmKtMDUqXLYTKPmG6U2V98JPNp a2bCXQt4eGf2ioUWQhCYTymowMCG9ReT8eWI/WEnFygSrLP9DjrL4SXx2yj0/w55Ta1J N+woKFcSlB8CyuunAfJ5gmvlWRZrNFQF3dRtM8zt3bpD5xK+rgOC4GLYz7ozjvCjAYpq nEZw== blanklikes -> blank lines On Thu, Apr 20, 2017 at 12:03 AM, Stephane Sudre <dev.iceberg@gmail.com> wrote:
If this is the only issue with what you're trying to achieve, don't forget that wall(1) is part of Darwin, so you can get the source code and modify it:
https://opensource.apple.com/tarballs/remote_cmds/remote_cmds-54.50.1.tar.gz
If you force the undocumented nobanner option and remove the blanklikes by:
1. changing line 86 to int nobanner=1; 2. commenting lines 283 and 350.
You can add your modified wall executable to your package resources and use it.
e.g.
macpro:~ stephane$ sudo echo "Compacting trash..." | /Users/stephane/Library/Developer/Xcode/DerivedData/wall-e-btvgbaqrikqzcqavrorrfufgpfiw/Build/Products/Debug/wall-e Compacting trash...
On Wed, Apr 19, 2017 at 9:27 PM, Lora Lozano <lora_lozano@filemaker.com> wrote:
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 <dev.iceberg@gmail.com> 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 <lora_lozano@filemaker.com> 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/dev.iceberg%40gmail.co...
This email sent to dev.iceberg@gmail.com
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html
-- 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com