Re: BASH: piping inside 2 script
From: Stephane CHAZELAS (this.address_at_is.invalid)
Date: 12/14/03
- Next message: Stephane CHAZELAS: "Re: A quick question: Catching error of a program in a pipeline"
- Previous message: Michael Heiming: "Re: Adding a string to multiple files by position?"
- In reply to: Ambrosa: "BASH: piping inside 2 script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 14 Dec 2003 15:57:59 +0100
2003-12-14, 03:50(-08), Ambrosa:
[...]
> #!/bin/bash
> main_sw | sw1 | sw2 | sw3
> ------------------
> A very simple script and it works fine. main_sw and sw? are not mine
> and they was written in C.
>
> I need to group sw1 | sw2 | sw3 in another shell script (beta.sh)
> something like this:
> -----beta.sh------
> #!/bin/bash
> sw1 | sw2 | sw3
> ------------------
>
> and the main script alfa.sh now is:
> -----alfa.sh------
> #!/bin/bash
> main_sw | beta.sh
> ------------------
>
> Obviously something is missing in beta.sh
No, it's fine. Maybe you forgot to set execute permission for
beta.sh or to put it in your PATH.
-- Stéphane ["Stephane.Chazelas" at "free.fr"]
- Next message: Stephane CHAZELAS: "Re: A quick question: Catching error of a program in a pipeline"
- Previous message: Michael Heiming: "Re: Adding a string to multiple files by position?"
- In reply to: Ambrosa: "BASH: piping inside 2 script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|