By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,852 Members | 1,426 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,852 IT Pros & Developers. It's quick & easy.

Pop up Message in PERL

P: 23
Hi All,

I have a query

Is it possible in PERL to popup a message?
I have a requirement like this:
Copy a file from a location and once the copy is complete pop up a message to the user that Successfully copied the file...(as the copying file script is scheduled in the scheduler...user dont want to refer to the log files). I can think of sending mails...but i feel sending mails is not feasible for such a small requirement.

Till now i haven't tried something like this...I just started seraching for this, if this is possible then please let me know.

Thanks in advance.
Regards
Pramod
Mar 10 '08 #1
Share this Question
Share on Google+
5 Replies


nithinpes
Expert 100+
P: 410
For sending Windows pop-up messages, you can make use of Net::NetSend module.
Mar 10 '08 #2

P: 23
I am able to achieve this using Perl TK.
here is the code:

Expand|Select|Wrap|Line Numbers
  1. use Tk;
  2. use strict;
  3.  
  4. # Main Window
  5. my $mw = new MainWindow;
  6. $mw -> messageBox(-message=>"Successfully Copied the File");
  7.  
Thanks for everyone.
Regards
Pramod
Mar 12 '08 #3

savanm
P: 85
I am able to achieve this using Perl TK.
here is the code:

Expand|Select|Wrap|Line Numbers
  1. use Tk;
  2. use strict;
  3.  
  4. # Main Window
  5. my $mw = new MainWindow;
  6. $mw -> messageBox(-message=>"Successfully Copied the File");
  7.  
Thanks for everyone.
Regards
Pramod

Another way to do this using win32 Module

Expand|Select|Wrap|Line Numbers
  1. use Win32;
  2. Win32::MsgBox("Successfully copied");
  3.  
Mar 12 '08 #4

P: 23
Another way to do this using win32 Module

Expand|Select|Wrap|Line Numbers
  1. use Win32;
  2. Win32::MsgBox("Successfully copied");
  3.  
Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
Thanks.
Pramod
Mar 13 '08 #5

savanm
P: 85
Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
Thanks.
Pramod

Hi

Expand|Select|Wrap|Line Numbers
  1.  
  2. Welcome.. Carry on Mr.promoth.
  3.  
  4.  
Mar 17 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.