[openbeos] Re: Alert command line program
- From: Ingo Weinhold <ingo_weinhold@xxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Fri, 18 Apr 2008 20:29:15 +0200
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
- Follow-Ups:
- [openbeos] Re: Alert command line program
- From: scott mc
- References:
- [openbeos] Alert command line program
- From: scott mc
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] Re: Alert command line program
- From: scott mc
- [openbeos] Alert command line program
- From: scott mc