This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>>>>> "Gary" == Gary Houston <ghouston@actrix.gen.nz> writes:
Gary> | Date: Tue, 30 Sep 1997 21:34:27 +0100
Gary> | From: Sascha Ziemann <szi@aibon.ping.de>
Gary> |
Gary> | Hi,
Gary> |
Gary> | the Perl book contains a example program that shows how to write a
Gary> | simple daemon. Does such an example exist for Guile too?
Gary> |
Gary> Here's a complicated way to write a simple daemon. talk to it by
Gary> telnetting to port 20004:
Awesome. And for those of us simple folk who like it when even the
basic instructions are explicit (especially in a tutorial, hint):
1) Put Gary's code in a file - call it, say, "daemon".
2) Run it via Guile, in the background, in one xterm ("the Guile
window") so you can watch what will happen:
guile -s daemon &
3) In another terminal window ("the telnet window"), type:
telnet YOURHOSTNAME 20004
(Replacing YOURHOSTNAME with the host name of your workstation.)
4) You should see:
Incoming connection from nnn.nnn.nnn.nnn port nnnn
in the Guile window, and:
Trying nnn.nnn.nnn.nnn ...
Connected to YOURHOSTNAME.
Escape character is '^]'.
in the telnet window.
5) In the telnet window, type something:
asdf
You should see:
asdf
in the Guile window, and:
you sent:
asdf
in the terminal window.
6) Disconnect from the telnet session by typing Control-rightbrace ^]
then typing "quit" at the telnet prompt.
7) Run the 'jobs' Unix command to find the job number of the guile
process, and kill it with the Unix 'kill' command.
--
Lee Thomas lee_thomas@credence.com (503)-520-6551
Senior Software Quality Engineer
Credence Systems Corporation, Beaverton, OR, USA