Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: I got two questions, please see here:)by atcroft (Abbot) |
on Feb 18, 2011 at 04:07 UTC ( [id://888841]=note: print w/replies, xml ) | Need Help?? |
For both questions, I would suggest reviewing perlipc, the perl documentation on inter-process communications. The section on signal handling mentions both Ctrl-C and Ctrl-Z (from question 1), while the section "Using open() for IPC" would be a good place to start for question 2. Hope that helps. Update: (2011-02-17) For reference, I believe (after a quick search) that Ctrl-C sends SIGINT (INT), and Ctrl-Z sends SIGTSTP (TSTP). Update: (2011-02-17) The example from the section on signal handling can be modified as follows to illustrate handling the INT and TSTP signals:
A modification of the second code example in the section mentioned for question two uses open() to retrieve interface IP information using the ifconfig command:
In Section
Seekers of Perl Wisdom
|
|