473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Pop up Message in PERL

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
5 16043
nithinpes
410 Expert 256MB
For sending Windows pop-up messages, you can make use of Net::NetSend module.
Mar 10 '08 #2
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
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
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
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

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

Similar topics

6
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question...
13
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
3
by: John Smith | last post by:
Hello, I have a rather odd question. My company is an all java/oracle shop. We do everything is Java... no matter what it is... parsing of text files, messaging, gui you name it. My question...
3
by: PzYon | last post by:
Hey 2gether! I'm trying to execute a PERL script on the web server when the user presses a button in an ASP.NET Web Application using Visual Basic. The most obvious solution for me seemed to be...
1
by: bobano | last post by:
Hi everyone, I am writing a POP3 Client program in Perl. You connect to a POP3 Server and have a running conversation with the mail server using commands from the RFC 1939 Post Office Protocol....
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
4
by: vijayarl | last post by:
Hi All, i have the following software installed in my system : 1.OS: Win2k 2.Eclipse Version used :3.4.0 & even the perl too... 1. I have imported the my own perl project in Eclipse, when i...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.