473,387 Members | 1,721 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,387 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 1866
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.