Re: OT: Trapping error messages in a script

2002-05-23 Thread Rob Saul
On Thursday 23 May 2002 08:01, you wrote: > Hello all. > > I have a script that could possibly generate the following error: > "mount: /dev/fd0 is not a valid block device". I can't quite figure out > how to get `trap' to catch that or similar errors. (I'd like to have it > echo an error messa

Re: OT: Trapping error messages in a script

2002-05-23 Thread Cameron Simpson
On 11:01 23 May 2002, Joe Nestlerode <[EMAIL PROTECTED]> wrote: | I have a script that could possibly generate the following error: | "mount: /dev/fd0 is not a valid block device". I can't quite figure out | how to get `trap' to catch that or similar errors. (I'd like to have it | echo an error

Re: OT: Trapping error messages in a script

2002-05-23 Thread Matthew Melvin
On Thu, 23 May 2002 at 11:01am (-0400), Joe Nestlerode wrote: > Hello all. > > I have a script that could possibly generate the following error: > "mount: /dev/fd0 is not a valid block device". I can't quite figure out > how to get `trap' to catch that or similar errors. (I'd like to have it

OT: Trapping error messages in a script

2002-05-23 Thread Joe Nestlerode
Hello all. I have a script that could possibly generate the following error: "mount: /dev/fd0 is not a valid block device". I can't quite figure out how to get `trap' to catch that or similar errors. (I'd like to have it echo an error message to std out and abort the script.) Am I trying to us