Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
An easy way out
Why is it that there can't be a single way that's guaranteed to get you out of ANY program?

We use programs such as telnet and ssh (and others) and we're used to running an exit command to get out of them - so why, or why, does it have to be quit to get out of FTP?

[Ctrl-C] (Control - C) will get you out of most programs in an emergency - like if you've written your own program that's in an infinite loop. But ... it won't get you out of vi. To get out of vi, you can use ZZ or :q![Enter] or two or three other alternatives.

All of which help to keep life fun and interesting ;-)
(written 2005-03-17 06:51:24)

Commentatorsays ...
Bruce James:vi derives from ex and ed, which can handle data streams (which may contain (Ctrl-C)?) so perhaps thats why vi uses other exit commands..

The others I guess were the preference of the people who wrote the spec, or wrote the program.

And telnet uses (Ctrl-]) to get to its command mode before you can exit it using 'quit'. Typing 'exit' while logged in just exits the current shell.

And (Ctrl-D) will get you out of the shell and some interactive programs by sending an EOF. (ed will end with a (Ctrl-D) but not a (Ctrl-C))

It's all there to confuse the uninitiated... ;-)

B


(comment added 2005-03-17 10:17:46)
Associated topics are indexed under
A101 - Web Application Deployment - Linux -An Introduction For Users

Back to
Use me, but use me effectively
Previous and next
or
Horse's mouth home
Forward to
We dont stand still

Some other Articles
Finding the right holes
A West End show
WIBNIF
We dont stand still
An easy way out
Use me, but use me effectively
Extreme training
When to bless a Perl variable
I'm not blogging it
Getting your examples, my examples and the data files after your course
1636 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho