473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Translation of <Ctrl+D>

Hi,
I have been stuck for like days!!! Can somebody tell me how I can translate the keys <Ctrl+D> into some kind of command in UNIX (csh)? I need to exit out of a certain filter that I set up in my script by logging into another entity.
Thanks.
Mar 1 '07 #1
3 1867
ghostdog74
511 Expert 256MB
Hi,
I have been stuck for like days!!! Can somebody tell me how I can translate the keys <Ctrl+D> into some kind of command in UNIX (csh)? I need to exit out of a certain filter that I set up in my script by logging into another entity.
Thanks.
CtrlD indicates End Of File. No signal is associated with it, so trapping is not viable for this
Mar 1 '07 #2
CtrlD indicates End Of File. No signal is associated with it, so trapping is not viable for this
Thanks, but I really do need to come out of that filter. The exit() functions cannot be used since it is machine dependent. Any other solution ?
Mar 2 '07 #3
ghostdog74
511 Expert 256MB
Thanks, but I really do need to come out of that filter. The exit() functions cannot be used since it is machine dependent. Any other solution ?
you want to post your code?
Mar 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Marc | last post by:
Hi all, In searching for an answer to this problem I found several solutions dealing with Unix but none dealing with Windows. Basically I want to send a ping for an indefinite period of time,...
11
by: Ted Mayett | last post by:
OK. Here is a glitch, sorry if this has been mentioned before. This is an erratic glitch. I am now up to three other people besides myself who have been able to see this glitch. It seems it...
16
by: chandanlinster | last post by:
/* if the program is executed as shown below: * $./a.out * ges<ctrl-d><ctrl-d> * * OUTPUT: * Number of characters = 3 * * Question: What happens to the first and second <ctrl-d>? */
1
by: sweetpotatop | last post by:
Hi, I got an pop-up error when I tried to run my window application. However, I have no idea which line of code is causing the problem. Is there a way to figurate that out? In VB, when I do...
1
by: John B. | last post by:
Please forgive my rant, but trapping keystrokes in .NET couldn't get much worse if someone tried. Sorry to vent my frustration but I've had no end of problems with this for the past 18 months. The...
3
LegalIT
by: LegalIT | last post by:
Hi, I am trying to capture the sequence <ctrl> t from a textbox to automatically fill in the current date. I can see how to capture an individual character but I am having trouble catching the...
7
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
I need to emulate the missing "maxlegth" attribute in "textarea" fields but all my Google searches either lead to obsolete scripts that overwrite the "value" property (thus losing caret position)...
2
by: thanhnh | last post by:
Hi. I have to write a simple Shell with History feature. First, I get a string from command line. The command line is split into tokens. And then, I call fork ( ) to create a new process. The child...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.