Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use Perl to send me an smbclient message. somethng like:
#!/usr/bin/perl
'smbclient -M acomputer';
$_ ="Ping failed";
^D;
I am unable to figure out how to encode the control-D bit so the messsage can be sent.
Ultimately, I have a little script which pings a critical machine and I want a popup message when it fails to connect. I have succeeded in the first part, now ned to complete the second bit. Please show me the way.
regards,
Mat Fulton