Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'm building a headless data acquisition box (RH Linux 7.1), which is controlled over a network by a Windows laptop. Both the acquisition program (server) and control program (client) are written in Perl. The Linux box's video output is used to monitor the incoming data in real time. I'm using Tk under Gnome to display the data. I'm able to login via Net::Telnet from the client program, start Gnome, and get the server program running. From there, communication with the server program takes place using SOAP::Lite. What's got me stuck at this point is the reverse process -- logging out. Does anyone know how to either:

1. Send the telnet logout command via an open Net::Telnet connection? (Once Gnome is started via startx, telnet blocks, waiting for the X session to finish, so using $connection->cmd is not possible. Also, breaking the telnet connection doesn't force a logout -- nor do I want it to.)


2. Have the Perl script running on the server force an exit/logout sequence?

Many thanks! This has had me stumped for several days now, and I've exhausted the resources I'm familiar with.

In reply to Logging out by Dr. Mu

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2022-01-18 08:06 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (52 votes). Check out past polls.