How to pass/return a string to calling program?
- From: Tony De <tonydema@xxxxxxxxx>
- Date: Thu, 21 Oct 2010 15:20:09 -0500
Greetings,
I have a daemon running (linux server) which listens and receives
service requests from a client, executes the script (which performs the
services) and then returns a message (returned from the script) back to
the client.
So I'm having some trouble getting a message back to the client. In my
perl scripts a simple "print msg_string" followed by an exit(x) will
pass the msg_string to the daemon which then sends it back to the
client. In ruby I've tried without success:
puts msg_string
exit
print msg_string
exit
at_exit {print msg_string}
exit
at_exit {puts msg_string}
Any help would be graciously accepted.
Thanks :)
tonyd
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: How to pass/return a string to calling program?
- From: Jeremy Bopp
- Re: How to pass/return a string to calling program?
- Prev by Date: Re: get blinking cursor in Console, but not in SciTE
- Next by Date: Re: How to pass/return a string to calling program?
- Previous by thread: minitest/spec pull request
- Next by thread: Re: How to pass/return a string to calling program?
- Index(es):
Relevant Pages
|