Sponsored Content
Top Forums Shell Programming and Scripting How to issue ctrl+D and enter key Post 302332485 by fozay on Thursday 9th of July 2009 08:46:11 AM
Old 07-09-2009
Firstly thanks a lot to reply my question. I will search expect but before that ı want to try your suggestion but the thing i did not understand how can i write the command on vi editor for ctrl+D or enter. For example when i write:
^D or "^D" ; ^M or "^M" or '^M'
these commands do nothing when ı execute the script. for example ^D should exit or ^M should jump another bash but they do nothing. how can i make them do smthg or how can i make the computer press enter or ctrl+D

Thanks a lot

fozay
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disabling ctrl-Z key inside shell script

Hi I have tried to disable the CTRL-Z key inside a shell(sh) script using the command trap "`echo "Ctrl-Z key disabled"`" 20But I am not able to exit from the script after pressing CTRL-Z key. How to proceed this? Need reply soon (11 Replies)
Discussion started by: suganthic
11 Replies

2. Shell Programming and Scripting

read the ENTER key

Hi , I do the following : ]echo "Do you want to say yes or no ?(y/n):\c" read ans here 'n' is the default value.that means if the user press ENTER key then it should be 'n' . Now how do i know that the user has pressed ENTER key.What will be stored in my variable 'ans'. (4 Replies)
Discussion started by: sars
4 Replies

3. UNIX for Dummies Questions & Answers

Pressing backspace key simulates enter key

Hi, Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused: Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies

4. UNIX for Advanced & Expert Users

using enter key in shell script

without pressing the enter key ..manually... how can we read the enter key ..from the shell script..so that the script termintes automatically. eg: telnet a.b.c.d xxxx now " how to read the enter key" tho terminate the script (1 Reply)
Discussion started by: bishweshwar
1 Replies

5. Shell Programming and Scripting

How to find entering ENTER key?.

Hello All, i have a script to get input from the user like bellow, read -p "Do you want to continue (y/n) : " status i want to identify the pressing of Enter Key with out giving any value for the above statement and i want get the status if we press Enter key during run time. How to... (0 Replies)
Discussion started by: tsaravanan
0 Replies

6. Shell Programming and Scripting

How to delete ctrl key values in a given string?

Hi all, My query is... in the runtime, you are getting any input string. Unfortunately, you have pressed some ctrl keys or esc keys or arrow keys while typing input string. You can get the input value like that... input string as welcome^ So ,I want to remove those unwanted keys... (4 Replies)
Discussion started by: balan_mca
4 Replies

7. Shell Programming and Scripting

enter key solaris

Hi, When I run script on Sun Solaris (sassetup), it prompts to "Press Enter To Continue". Now I want to automate this, ie put sassetup in a script file. So, when I run this file, it should be executed automatically without waiting for anyone to press Enter Key. I have tried the following... (1 Reply)
Discussion started by: sajjunaqvi
1 Replies

8. UNIX for Dummies Questions & Answers

Ctrl-enter doesn't work when running Midnight Commander in xterm

When running MC in xterm or gnome-terminal, it doesn't seem to allow the use of Ctrl-enter and Ctr-shift-enter to copy marked files to the command line. Does anyone know of another way to cause this to happen or a way to enable it under xterm/gnome-term? With thanks, Narnie (0 Replies)
Discussion started by: Narnie
0 Replies

9. Shell Programming and Scripting

Expect command to send the user input enter or ctrl+c

Hey All, I am writing one script using expect, that script which is used in spawn will accepts only 1. Enter 2. Ctrl+c Press Control-C to exit, Enter to proceed. Could some one share some thoughts to send the above user inputs in linux expect block ? Thanks, Sam (0 Replies)
Discussion started by: SCHITIMA
0 Replies

10. Shell Programming and Scripting

Simulate enter key

I have a popup window that appears on every boot up. I would like to have it dismissed automatically each time instead of having to hit the enter key. I thought I could write a script that would execute on startup. I tried this xdotool key return andy@7_~/Downloads$ xdotool key ... (7 Replies)
Discussion started by: drew77
7 Replies
HEXCURSE(1)						      General Commands Manual						       HEXCURSE(1)

NAME
hexcurse - an ncurses-based hex editor SYNOPSIS
hexcurse [ -? | -help ] [ -a ] [ -r rnum ] [ -o outputfile ] [ [ -i ] inputfile ] DESCRIPTION
hexcurse is an ncurses-based hexeditor utility that is able to open, modify, and save a file to disk while providing useful editing and searching options. OPTIONS
-? | -help Prints out the command usage info -a Specifies the addresses to be output in decimal format initially. -r rnum Specifies the number of characters per line that the hexeditor should output. If rnum is either less than 1 or greater than the columns of the current terminal, hexcurse will fill the terminal width, just as if the -r was not specified. -o outputfile Specifies the output file to be written to by default. [-i] inputfile Specifies the input file to be read in. -i is not needed if inputfile is the last argument on the line. INTERACTIVE OPTIONS
F1 | ctrl+? Shows key command help. F2 | ctrl+s Save the current file. F3 | ctrl+o Opens a file. F4 | ctrl+g Goto a certain location in the current file. Depending on which way the addresses are being viewed at the moment, the search will behave differently. If the addresses are currently in hex format, the search will search as if the input was given in hexadecimal format. If the addresses are in decimal format, the function will search for the address in decimal. F5 | ctrl+f Search for a certain string in the current file. Depending on which window the user is currently editing in, this search will behave differently. If editing in the hex window, the input should only be in hexadecimal, and it will search for the hexadecimal "string." If the current editing window is the ASCII window, the input should be ASCII characters, and the search will find that ASCII string in the file. F6 | ctrl+a Switch between hexadecimal address values and decimal address values. F7 | TAB Switch between the hexadecimal and ASCII editing windows. F8 | ctrl+q | ctrl+x Exit out of the program. Page Up | ctrl+u Scroll one 'page' up. Page Down | ctrl+d Scroll one 'page' down. Home | ctrl+t Returns to the top of the file. End | ctrl+b Jumps to the bottom of the file. ctrl+z Undo the last modification. Can be used multiple times. Esc Escapes out of the save, open, goto, and find prompts. SEE ALSO
hexdump(1) , ncurses(3) AUTHORS
The authors of hexcurse are: jewfish <jewfish@jewfish.net> armoth <uknowho@jewfish.net> The current version of this software is always availabe at http://www.jewfish.net/software.php BUGS
On some terminals the function keys will not work. Support for resizable terminals is still a bit rudimentary. At this time, when the terminal is resized, the cursor is positioned at the beginning of the file. This will be corrected in the next release. There is also an issue where the labels on the bottom of the screen do not resize correctly. A fix for the latter is in the works. To report a bug or problem, please e-mail: devel@jewfish.net TODO
When we get the time, we would like to implement the ability to insert and delete data from the file. Please e-mail us with any additional suggestions. 22 December 2003 HEXCURSE(1)
All times are GMT -4. The time now is 04:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy