Re: Help needed piping output to a bash script

1999-01-16 Thread Alfie Costa
For some reason my mail reader, (Pegasus Mail v2.55), ate some linefeeds from a previous post, as the original text looked OK when it left the edit window. Correction: On 15 Jan 99 at 23:55, Alfie Costa <[EMAIL PROTECTED]> wrote: > handle any of these invocations: vl foo vl < foo vl --help vl

Re: Help needed piping output to a bash script

1999-01-16 Thread Alfie Costa
On 12 Jan 99 at 16:56, E.L. Meijer \(Eric\) <[EMAIL PROTECTED]> wrote: > ...The problem is that the script gets its > standard input from the pipe, and vi needs input from a tty. Your > current tty is /dev/tty. This works: > > #! /bin/bash > # mymore > > $TMPFILE=/tmp/mymore.$$.tmp > > while

Re: Help needed piping output to a bash script

1999-01-16 Thread Alfie Costa
On 13 Jan 99 at 11:27, E.L. Meijer \(Eric\) <[EMAIL PROTECTED]> wrote: > Um, yeah, it looks neater :) I was just mindlessly copying the original > poster's script. Anyway, you actually still have one superfluous > character there :) > > cat > $TMPFILE > > is enough, so that the entire script

Re: Help needed piping output to a bash script

1999-01-14 Thread Henning Makholm
"E.L. Meijer \(Eric\)" <[EMAIL PROTECTED]> writes: > cat > $TMPFILE > is enough, so that the entire script becomes Hm, seemingly I assumed that the header the original poster spoke of had already been written to the tmpfile. -- Henning Makholm http://www.diku.dk/students/makholm

Re: Help needed piping output to a bash script

1999-01-13 Thread E.L. Meijer \(Eric\)
> > "E.L. Meijer \(Eric\)" <[EMAIL PROTECTED]> writes: > > > while read line; do > > echo $line >> $TMPFILE > > done > > Any special reason for not simply doing > cat >> $TMPFILE Um, yeah, it looks neater :) I was just mindlessly copying the original poster's script. Anyway, you actually st

Re: Help needed piping output to a bash script

1999-01-12 Thread Henning Makholm
"E.L. Meijer \(Eric\)" <[EMAIL PROTECTED]> writes: > while read line; do > echo $line >> $TMPFILE > done Any special reason for not simply doing cat >> $TMPFILE ? -- Henning Makholm http://www.diku.dk/students/makholm

Re: Help needed piping output to a bash script

1999-01-12 Thread E.L. Meijer \(Eric\)
> > Can use a hint or two with a 'bash' script... > > I've just downloaded and installed the basic 5 or 6 meg Hamm distribution of > Debian. Couldn't get it to see the modem, (due to a non-Hamm problem, it > turned > out the ISA PNP modem had switched configs, when I'd recently flashed the >

Help needed piping output to a bash script

1999-01-12 Thread Alfie Costa
Can use a hint or two with a 'bash' script... I've just downloaded and installed the basic 5 or 6 meg Hamm distribution of Debian. Couldn't get it to see the modem, (due to a non-Hamm problem, it turned out the ISA PNP modem had switched configs, when I'd recently flashed the BIOS), and was tr