10-30-2008
How to display an error msg?
Hi friends,
Please suggest a solution for this.
A script has following things.
echo "Enter P for PML"
echo "Enter V for VVL"
echo "Enter L for LNL"
echo "Enter G for GDL"
read choice
echo ${choice} >> LOG_Daily.txt
if operator enters anything other that P/V/L/G it should show an error msg like "Wrong media Choice; Please try again"
Thanx in advance
Anushree.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
we have two alpha stations which are connected on two sides on the same wan (64k leased line), here is one problem described as follow.
when i do a ftp to copy a file form one to another, an error mesg shown and the file lenth is 0 at last.
diamond> ftp 192.168.50.1
Connected to... (1 Reply)
Discussion started by: royxiao
1 Replies
2. UNIX for Dummies Questions & Answers
hi all
The following error msg was displayed in the sco server 5.0.5. can anybody explain what it is?
"WATCHDOG REINITMEMORY 6 FOR BOARD"
replies appreciated.
raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies
3. HP-UX
Sometimes, for any reason, the UX System sends messages to /var/mail/root and/or to Error Log of the guardian.
I'll appreciating if you help me to configure so that those messages are also sent to the System Administrator's e-mail address.
Regards
Gege (1 Reply)
Discussion started by: cgege
1 Replies
4. Linux
mit@mydomain.com
here is the latest error message:
There was a problem logging onto your mail server. Your Password was rejected. Account: 'mit@mydomain.com', Server: 'mail.mit.com', Protocol: POP3, Server Response: '-ERR Logon failure: unknown user name or bad password.', Port: 110,... (2 Replies)
Discussion started by: naik_mit
2 Replies
5. Shell Programming and Scripting
Hi all,
I was hoping someone can point me in the right direction. I'm trying to filter out errors from a web log- any lines with ERROR in it. I know I could simply use the grep command to do this. However, there are times when a stack trace follows the error line. I would like to capture these... (2 Replies)
Discussion started by: gswhoops
2 Replies
6. Shell Programming and Scripting
Hi All,
I have an expression as follows:-
a=`expr ${i} + ${j}` >> $log_file 2>&1
Here, if any of the values i or j or both happens to be empty then the "expr" returns error as
"expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Discussion started by: rony_daniel
4 Replies
7. UNIX for Dummies Questions & Answers
Hello ,
i have a problem in writing the shell script..
i have a script already written n just need to make a change in which when the script is not able to connect to the database ..it should print an error msg on the screen.
I have already seen previous posts on how to connect to the... (3 Replies)
Discussion started by: sommer_queen
3 Replies
8. Programming
Hi,
i am working in C in Fedora Eclipse 3.3.0 with gdb debugger. I am geting segmentation fault with an error message "mi_cmd_var_create: unable to create variable object" on debugging the program.
What should I do to solve this problem?
rgds,
Dona_m (14 Replies)
Discussion started by: dona_m
14 Replies
9. Solaris
required Solaris 5.10 Kernel patch 137111-03
required Solaris 5.10 Fibre Channel Device Driver patch 125184-08
I want to know about the descriptions and what the patches will do. I searched www.sun.com (patches/updates) but don't see I am looking for. (1 Reply)
Discussion started by: Y4Net
1 Replies
10. AIX
When i run errpt -a, the output was below:
---------------------------------------------------------------------------
LABEL: DMPCHK_NOSPACE
IDENTIFIER: F89FB899
Date/Time: Tue Jan 17 15:00:02 BEIS
Sequence Number: 28998
Machine Id: 0058C0CE4C00
Node Id: ... (2 Replies)
Discussion started by: Ivanku
2 Replies
LEARN ABOUT DEBIAN
xpacmdnew
xpacmdnew(3) SAORD Documentation xpacmdnew(3)
NAME
XPACmdNew - create a new XPA public access point for commands
SYNOPSIS
#include <xpa.h>
XPA XPACmdNew(char *class, char *name);
DESCRIPTION
Create a new XPA public access point for commands that will share a common identifier class:name. Enter this access point into the XPA name
server, so that it can be accessed by external processes. XPACmdNew() returns an XPA struct.
It often is more convenient to have one public access point that can manage a number of commands, rather than having individual access
points for each command. For example, it is easier to command the ds9 image display using:
echo "colormap I8" | xpaset ds9
echo "scale log" | xpaset ds9
echo "file foo.fits" | xpaset ds9
then to use:
echo "I8" | xpaset ds9_colormap
echo "log" | xpaset ds9_scale
echo "foo.fits" | xpaset ds9_file
In the first case, the commands remain the same regardless of the target XPA name. In the second case, the command names must change for
each instance of ds9. That is, if a second instance of ds9 called DS9 were running, it would be commanded either as:
echo "colormap I8" | xpaset DS9
echo "scale log" | xpaset DS9
echo "file foo.fits" | xpaset DS9
or as:
echo "I8" | xpaset DS9_colormap
echo "log" | xpaset DS9_scale
echo "foo.fits" | xpaset DS9_file
Thus, in cases where a program is going to manage many commands, it generally is easier to define them as commands associated with the
XPACmdNew() routine, rather than as separate access points using XPANew().
When XPACmdNew() is called, only the class:name identifier is specified. Each sub-command is subsequently defined using the XPACmdAdd()
routine.
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpacmdnew(3)