popup message


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting popup message
# 1  
Old 07-22-2008
popup message

[IMG]file:///C:/DOCUME%7E1/eelavazh/LOCALS%7E1/Temp/moz-screenshot-1.jpg[/IMG]HI,,
I am new to the shell scripting and trying to be adopted soon...Can u please suggest me how do we populate a message when the following condition fails......

Thanks and Regards,
Ela

success250=`grep -c 250.Transfer.completed.successfully /tmp/int002_$$`

mail_list="elavv2003@gmail.com"

if [ "$success250" -eq 1 ]
then
cat $1 /tmp/int002_$$ > /tmp/int002err.$$
#sdm -t $mail_list -s "Success "`basename $0` -m "$1 /tmp/int002_$$"
mutt $mail_list -s "Success "`basename $0` -i "/tmp/int002err.$$" </dev/null
else
#sdm -t $mail_list -s "FAILURE "`basename $0` -m "$1 /tmp/int002_$$"
mutt $mail_list -s "FAILURE "`basename $0` -i "/tmp/int002err.$$" </dev/null
fi
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Popup needed while reboot - for confirmation

Hi all, I need something like a pop-up while clicking on shutdown button or reboot button in GUI and also while running the command reboot / shutdown / init it should ask some confirmation message.. Do you want to do so..and so. How can i make this possible ? . (4 Replies)
Discussion started by: linuxadmin
4 Replies

2. Shell Programming and Scripting

Writing an annoying popup window

Hi, I work for Xerox. As a new guy, I was recently pranked by the resident Solaris guru.:cool: This is a celebrated event. I must now prank back in an equally flawless fashion. I wish to get back to him by writing a script that will generate an annoying popup randomly, a small window that... (1 Reply)
Discussion started by: orchus
1 Replies

3. Shell Programming and Scripting

Read popup message and save it in file

Hi, I am trying to automate one of the application using IE:Auotmation in perl My web application has few text fields and 2 buttons "Save Changes" and "Discard Changes".I have written code to enter values to the text fields fetching from input file and click the button "Save Changes".As soon as... (0 Replies)
Discussion started by: jyo123.jyothi
0 Replies

4. Shell Programming and Scripting

call a popup message from the shell script

Hi , this is my first querry in this forum and I am new bee to the shell scripting..Please have a glance on my query and give ur valuable suggestions . I have a crown job which performs one function,If the job has done successfully we need to send message to some group as "SUCCESSFUL" or else we... (0 Replies)
Discussion started by: elavv
0 Replies

5. Cybersecurity

Browser Login instead of .htaccess popup

Hi, Sorry if this is in the wrong forum. Anyway help I would appreciate. How do or or where would I find info (tried google but it's just a bit hard to understand & have no how to implement it). What I've got is a standard garden variety user registration form (php). It allows people to... (1 Reply)
Discussion started by: justanob
1 Replies

6. Solaris

How to supress a UI popup at the time of Service start up in solaris-10

Hi, I have written a service script(service.sh) for my application which will add my application(BTINM) as service and start the service. Internally inside the script i will call the sh script which will start my application server. When my application server starts a UI opens saying that the... (5 Replies)
Discussion started by: krevathi1912
5 Replies

7. UNIX for Dummies Questions & Answers

Unix Messenger Popup?

Hi guys, I'm new to these forums. I'm more of a Windows guy, but I work at an electronics manufacture company that uses Solaris 10 extensively. We have Sunfire v480 servers set up to do system level testing. Everything is networked so you telnet into any server from any computer in the facility.... (1 Reply)
Discussion started by: Daniel.a
1 Replies

8. Solaris

Create popup in solaris

Does anyone know how to create a popup window in solaris 8 and later? I want to create and load a popup window when a user logon to a solaris machine and inform the user about some environment changes we have done. Can this easily be done? And if soo how? /Tony (0 Replies)
Discussion started by: tonlu
0 Replies

9. UNIX for Dummies Questions & Answers

samba popup message

I would like to display a popup message to my clients when they connect to my samba share explaining certain file restricitions and maintenance instructions. How do I go about this method? Right now I'm sharing linux with mac clients and pc's, but can only display a message with my mac clients. ... (4 Replies)
Discussion started by: benzo
4 Replies
Login or Register to Ask a Question
XtPopdown()															       XtPopdown()

Name
  XtPopdown - unmap a popup shell.

Synopsis
  void XtPopdown(popup_shell)
	 Widget popup_shell;

Inputs
  popup_shell
	    Specifies the widget shell to pop down.

Description
  XtPopdown()	   pops      down     a     popup     shell	and	calls	  the	  functions	registered     on     the     shell's
  XtNpopdownCallback list.  The "Algorithm" section below explains the details of this process.

Usage
  The Intrinsics also provide other convenience routines to pop down a popup shell.  To perform a pop down from a callback list, register the
  function XtCallbackPopdown().  To do so from a translation table, use the action XtMenuPopdown.

  Popup  shell widgets can be created with XtCreatePopupShell(), and can be popped up with XtPopup() or XtPopupSpringLoaded(), or with one of
  the built-in callback functions (XtCallbackExclusive(),  XtCallbackNonexclusive(),  or  XtCallbackNone()),  or  with	the  built-in  action
  XtMenuPopup.

Algorithm
  XtPopdown() performs the following:

  o  Calls XtCheckSubclass() to ensure popup_shell's class is a subclass of shellWidgetClass.

  o  Checks that the popped_up field of popup_shell is True; otherwise, it returns immediately.

  o  Unmaps  popup_shell's  window  and,  if override_redirect is False, sends a synthetic UnmapNotify event as specified by the Inter-Client
     Communications Conventions Manual.

  o  If popup_shell's grab_kind is either XtGrabNonexclusive or XtGrabExclusive, it calls XtRemoveGrab().

  o  Sets popup_shell's popped_up field to False.

  o  Calls the callback procedures on the shell's popdown_callback list, specifying a pointer to the value of the shell's grab_kind field  as
     the call_data argument.

See Also
  XtCallbackPopdown(1), XtCreatePopupShell(1), XtMenuPopdown(1), XtPopup(1), XtPopupSpringLoaded(1), XtRemoveGrab(1).

Xt - Pop Ups															       XtPopdown()