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
XtMenuPopup()															     XtMenuPopup()

Name
  XtMenuPopup - built-in action for popping up a widget.

Synopsis (Translation Table)
  <Event sequence>: XtMenuPopup(shell_name)

Inputs
  shell_name
	    Specifies the name of the widget shell to pop up.

Availability
  This action is named MenuPopup prior to Release 4.

Description
  XtMenuPopdown  is a predefined action procedure which does not have a corresponding public C routine.  It can only be invoked from a trans-
  lation table.

  XtMenuPopup tries to find the named shell by searching the widget tree starting at the widget in which it is invoked.  If it finds a	shell
  with the specified name in the popup children of that widget, it pops up the shell with the appropriate parameters.  Otherwise, it moves up
  the parent chain to find a popup child with the specified name.  If XtMenuPopup gets to the application top-level shell widget and has  not
  found a matching shell, it generates a warning and returns immediately.

  If  XtMenuPopup is invoked on ButtonPress, it calls XtPopupSpringLoaded() on the specified shell widget.  If XtMenuPopup is invoked on Key-
  Press or EnterWindow, it calls XtPopup() on the specified shell widget with grab_kind set to XtGrabNonexclusive.  Otherwise,	the  transla-
  tion manager generates a warning message and ignores the action.

  XtMenuPopup  is specially registered with the translation manager as an action that will invoke a grab.  This registration is done by call-
  ing XtRegisterGrabAction() specifying owner_events True, event_mask ButtonPressMask	ButtonReleaseMask, and pointer_mode and keyboard_mode
  GrabModeAsync.

Usage
  Note that XtMenuPopup is an action procedure; you cannot call it from C code.

  MenuPopup is a synonym for XtMenuPopup.

  Popup  shells  can  also  be popped up explicitly using XtPopup(), XtPopupSpringLoaded() or one of the predefined popup callback procedures
  (see XtCallbackExclusive()).

  The action XtMenuPopdown can be used to pop down a shell widget from a translation table.

See Also
  XtMenuPopdown(1), XtPopDown(1), XtPopup(1), XtPopupSpringLoaded(1), XtRegisterGrabAction(1).

Xt - Pop Ups															     XtMenuPopup()