Sponsored Content
Full Discussion: trapping keys
Top Forums UNIX for Dummies Questions & Answers trapping keys Post 19573 by sunil bajaj on Saturday 13th of April 2002 05:01:03 AM
Old 04-13-2002
Error trapping keys

how do i trap enter command entered by a user.

actually i am throwing a screen this screen has no input but this screen should be displayes unless and until the user presses the enter key. as the user presses enter key the command prompt should come.

how do i achieve this
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trapping Arrow keys

Hey Guys , How do we trap the arrow keys in shell programming. Or atleast can we read the ascii code of the arrow keys. I want to read the arrow keys pressed by the user and accordingly highlight the corresponding menu option. Is it possible in shell to do so ?? ... (1 Reply)
Discussion started by: nageshrc
1 Replies

2. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies

3. Shell Programming and Scripting

Error Trapping

Hi, Can anybody tell me how to error trap an empty line. If i am asked for a password and I hit enter without entering any text, how do i display an error? Thanks Kev (6 Replies)
Discussion started by: kev112
6 Replies

4. Shell Programming and Scripting

Trapping $! output

hey all, I have a script that creates and then distributes html files via scp on a 60 second cycle. On occasions the scp will hang and not complete with the cycle. When running the scp command in the back ground it returns the PID. How do I trap $! in the script? job=`echo $!` returns... (2 Replies)
Discussion started by: nhatch
2 Replies

5. UNIX for Dummies Questions & Answers

trapping errors

I am using unixs script to submit programs (SQRS) and need to trap any time of error that is received once the job finishes. Examples of the type of errors I am getting Error! SQR Failed To Process mkdir: Failed to make directory These are showing up in a log file but I do not want to... (3 Replies)
Discussion started by: TimHortons
3 Replies

6. Shell Programming and Scripting

trapping errors from a sub call

I want to trap any errors from a backup database script and send an email when an error occurs. I can trap command errors and send an email in the following code. My problem occurs if an error occurs in the Maxl script, /opt/hyperion/AnalyticServices/bin/essmsh < MaxlScript.msh..., that is called... (0 Replies)
Discussion started by: t_coop
0 Replies

7. Shell Programming and Scripting

trapping sftp errors

I'm trying to trap errors in a shell script executing an sftp command this way: /usr/bin/sftp $FTP_USER@$FTP_SERVER <<EOF> $HOME/$ERR_FILE cd $FTP_DIR put $FILE_NAME bye EOF I expect errors to be recorded in $ERR_FILE but they are not. The only thing in the $ERR_FILE is: sftp> sftp>... (2 Replies)
Discussion started by: pochon
2 Replies

8. Shell Programming and Scripting

Trapping exit and continuing

Hello I need to source a script. But that script terminates with a trailing exit. Which exits my script. I'm using bash, and this doesn't work: trap 'echo disabled' EXIT source other_file trap '' EXIT Instead, it calls my trap, but then exits anyway. I could get disgusting and... (4 Replies)
Discussion started by: brsett
4 Replies

9. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

10. Shell Programming and Scripting

Error Trapping

Hi, I have one shell script as below while read SegList do if test -s ${SourceFile_Path}/${Segment_List_Temp} then ls -r -1 ${FTP_Path}/${SegList}.DAT.${Datelist}.GZ|cut -d '.' -f2>>${SourceFile_Path}/${List_Temp} echo "IF above statment Fail I want to Create Emtpy File How to Trapp... (3 Replies)
Discussion started by: samadhanpatil
3 Replies
trans(1)						      General Commands Manual							  trans(1)

NAME
trans - translation tool for use with source message catalogs SYNOPSIS
trans [-c] [-o name] file.msg OPTIONS
Display comment lines beginning with a dollar sign ($) for translation, in addition to messages. Call the output file name. The default is output file name is trans.msg. DESCRIPTION
The trans command assists in the translation of source message catalogs. The command reads input from file.msg and writes its output to either a file named trans.msg or a file you name on the command line. The command displays file.msg in a multiple window screen that lets you simultaneously see the original message, the translated text you enter, and any messages from the trans command. This multiple window screen is easier to use for translating messages than a single window screen. The top window in the multiple window screen displays the text in the message source file file.msg. The editor displays the current message in reverse video. In the center window, trans displays a prompt that asks you to enter a translated message. You use a control key editor to move the cursor and delete text in the center window. The control key sequences are defined as follows: ------------------------------------------ Key Sequence Meaning ------------------------------------------ CTRL/k Display control key help CTRL/h Back space CTRL/l Forward space CTRL/w Back word CTRL/f Forward word CTRL/e Move to end of input CTRL/b Move to beginning of input CTRL/n Next line CTRL/p Previous line CTRL/u Delete input CTRL/i Insert mode (default) CTRL/r Replace mode DEL Delete previous character ------------------------------------------ If you need to span more than one line with the translated text, type a backslash () and press the RETURN key to enable line continuation. After you finish entering the translated text, press the RETURN key to signal that you have finished translating that message. The bottom window displays any messages generated by trans. If an error occurs, trans prompts you to re-enter the entire line, including the message label or number. RESTRICTIONS
Your terminal must be 80 columns by 24 lines for trans to display its three-window screen. You cannot interrupt a trans session and restart it at the point you stopped. You must complete the all the changes to a file before exit- ing a file. SEE ALSO
extract(1), gencat(1), strextract(1), strmerge(1) Writing Software for the International Market trans(1)
All times are GMT -4. The time now is 04:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy