LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-08-2009, 02:47 AM   #1
msskiran
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Exit in Linux/Minix


I had a small question. Can anybody tell me where the 'exit' shell command that we use to exit a shell is defined? I know that exit system call which exits a process is defined in <unistd.h>. Any help is appreciated. I am actually working on a project where I need to do some computation when a user exits from his shell.

I tried to find it in Linux and Minix kernels as well, but could not find in any file.

- Shashikiran
 
Old 12-08-2009, 05:18 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Find out what sort of command it is using
Code:
type exit
If it is part of the shell then it will be defined in the shell documentation, otherwise try reading the man page for exit. If that doesn't answer your question, please ask again, reporting what you found out.

Last edited by catkin; 12-08-2009 at 05:24 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit in Minix msskiran Other *NIX 1 12-08-2009 05:20 AM
Minix, Linux 0.01 or other dmsynck Programming 2 01-11-2008 10:03 PM
Minix V3 filesystem now supported by Linux kernel pistachio Other *NIX 0 01-15-2006 04:34 AM
is Linux based on Minix MaaSTaaR General 8 09-08-2005 02:13 PM
Linux is a clone of Minix kernel ?? purpleburple General 2 10-20-2002 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration