what i have:
1. parent.pl starts, prompt for login data (user/pw), starts socket server and waiting for a hostname via stdin
2. once a hostname is typed, it executes a
system("xterm -e client.pl") an waits for next input
3. the client.pl (in its own terminal) connects to the parent an fetches the login data & hostname.
4. then the client.pl opens a connection via expect.pm to the router, authenticates and gives the user control over the terminal
what i want:
1. script starts, prompt for login data (user/pw) and waiting for a hostname via stdin.
2. once a hostname is typed, a process(child) is forked and login data & hostname is piped to it.
3. the child starts its own xterm an connects therein to the router. <- no idea howto !?
4. after the authentication procedure, stdio is given to the user via the xterm <- also no idea howto..
hope this explanation is more clear :)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.