scsh-hackers
[Top] [All Lists]

[Scsh-hackers] [ scsh-Bugs-428193 ] handling host-info errors

To: noreply@sourceforge.net
Subject: [Scsh-hackers] [ scsh-Bugs-428193 ] handling host-info errors
From: noreply@sourceforge.net
Date: Mon, 28 May 2001 20:15:26 -0700
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
Bugs item #428193, was updated on 2001-05-28 20:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428193&group_id=10493

Category: run-time
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian D. Carlstrom (bdc)
Assigned to: Brian D. Carlstrom (bdc)
Summary: handling host-info errors

Initial Comment:
From: brownb@ja.gs.com (Robert E. Brown)
To: scsh-news@zurich.ai.mit.edu
Subject: handling host-info errors
Date: 07 Feb 2000 12:29:35 -0500


I'm using scsh-0.5.2 on Linux.

When my scsh script calls the function socket-connect 
with a bad host name,
I get the following error

        Error: name->host-info: non-zero herrno ~s ~s
               1
               #f

since socket-connect calls host-info, which calls name-
>host-info, which
indicates a problem by calling the error function.

I'd like to handle this condition and print a 
reasonable error message that
the users of my script will understand.  I want some 
syntax like
with-errno-handler, but it should handle herror/host-
not-found.  I have not
yet located what I need in the manual.  Am I looking 
in the wrong spot?
What syntax should I be using?

                                bob



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428193&group_id=10493


<Prev in Thread] Current Thread [Next in Thread>