Re: when crm can't read a file

Thomas Michael Hagen <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
thanks!

i'll try that.


On Wed, Mar 4, 2009 at 1:11 PM, <
crm114-general-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> wrote:

> Send Crm114-general mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/crm114-general
> or, via email, send a message with subject or body 'help' to
>        crm114-general-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> You can reach the person managing the list at
>        crm114-general-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Crm114-general digest..."
>
>
> Today's Topics:
>
>   1. when crm can't read a file (Thomas Michael Hagen)
>   2. Re: when crm can't read a file (Paolo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 4 Mar 2009 09:36:21 +0100
> From: Thomas Michael Hagen <[email protected]>
> Subject: [Crm114-general] when crm can't read a file
> To: [email protected]
> Message-ID:
>        <d77c32370903040036x5da7430cs6c9de6a50591bdfc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> is there a good idiom for continuing (not crashing) when crm can't read a
> file?
>
> the default is the 'for some reason, the file could not be read'-error
> message, and the program crashes.
>
> i would like the program to be able to continue past an unreadable file, to
> the next file in the list.
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Wed, 4 Mar 2009 11:42:52 +0100
> From: Paolo <[email protected]>
> Subject: Re: [Crm114-general] when crm can't read a file
> To: [email protected]
> Message-ID: <20090304104251.GA1207@localhost>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Mar 04, 2009 at 09:36:21AM +0100, Thomas Michael Hagen wrote:
> >
> >    is there a good idiom for continuing (not crashing) when crm can't
> >    read a file?
> >    the default is the 'for some reason, the file could not be read'-error
>
>
> check TRAP instruction in the docs.
>
> e.g.
>  crm '-{ window
>        { input [/tmp/x]
>          trap /unable to read-open/
>          output /nok\n/
>        }
>        output /ok\n/
>       }'
>
> 1. result for /tmp/x exists & readable
>
> ok
>
> 1. result if /tmp/x doesn't exist
>
> nok
> ok
>
>
> HTH
> --
> paolo
>
>
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
>
> ------------------------------
>
> _______________________________________________
> Crm114-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crm114-general
>
>
> End of Crm114-general Digest, Vol 34, Issue 2
> *********************************************
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.