[openbeos] Re: Alert command line program
- From: "scott mc" <scottmc2@xxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Fri, 18 Apr 2008 12:17:21 -0700
Ingo,
Awesome.
alert --idea "This is a test $(alert --info "This is a test inside of
a test" Ok)" "Nesting works" "Thanks Ingo"
This tip will come in handy.
-scottmc
On Fri, Apr 18, 2008 at 11:29 AM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>
>
> On 2008-04-18 at 20:18:24 [+0200], scott mc <scottmc2@xxxxxxxxx> wrote:
> > I was messing around with the "alert" command and was wondering if
> > there was a way to pipe output from another command line program into
> > alert so that the results could be viewed in a GUI dialog box. Here's
> > a screenshot of how it normally works:
> > http://dev.haiku-os.org/attachment/ticket/2096/screen1.png
> > Betips has a couple of examples but those were both with static text as
> > well.
> > If it can't take piped in results, maybe it could be extended to
> > enable such feature, or a similar command line program could be
> > created that would do that?
> > This would add some more tricks to what could be done in Haiku bash
> scripts.
>
> You can use `...` or the even nicer (because nestable) $(...). E.g. to put
> the output of "date" into an alert:
>
> alert "Current date is: $(date)" Thanks
>
> CU, Ingo
>
>
- References:
- [openbeos] Alert command line program
- From: scott mc
- [openbeos] Re: Alert command line program
- From: Ingo Weinhold
Other related posts:
- » [openbeos] Alert command line program
- » [openbeos] Re: Alert command line program
- » [openbeos] Re: Alert command line program
- » [openbeos] Re: Alert command line program
- » [openbeos] Re: Alert command line program
- [openbeos] Alert command line program
- From: scott mc
- [openbeos] Re: Alert command line program
- From: Ingo Weinhold