02-08-2005
The answer to your questions is:
Some threads from applications used by the user are kept open even after the user logs off. Some of them have a default auto kill time set and some are not. That varies from OS to OS.
Also, if the user used console, or other x-terms that means that various tty's connections established. UNIX works with proccesses, threads, sessions, tty's.
With the "ps" command you can only see the top level procces.
Also, do a 'netstat -a'
it can help you realise how UDP and sockets are mixed with all the above.
Cheers
Aris :-)
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have problems executing a script in ksh with this script named
process.sh:
ps -ef | grep process.sh | grep -v grep | wc -l | read a
if
then
echo "The script is running"
exit 0
fiThe problem is that when I execute the script, sometimes it shows the
message "The script is... (10 Replies)
Discussion started by: jguirao
10 Replies
2. UNIX for Dummies Questions & Answers
I just noticed by running a who command that I was logged in twice . So two admin2 are on the list. (solaris 2.6)
Since I telnet using a windows 98, I suppose that I forgot to CTRL-D last time I logged in and clicked on hangup.
In such a case, how can I loggoff the old ghost loggin ?
It's not a... (4 Replies)
Discussion started by: phpote
4 Replies
3. UNIX for Dummies Questions & Answers
I have a Solaris Ultra 10 Box, which contains all my software, I got a new Sun Ultra10 with the same configuration. Can I ghost the it ? Does Unix support any such application. (6 Replies)
Discussion started by: stephen104
6 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a strange (for me) problem here:
I use stop command to close program. After that I try to start it again. However, it wont start because one of the needed component fails to start. That is caused propably because the failing component is still running (obviously as a ghost pid).... (3 Replies)
Discussion started by: kolada
3 Replies
5. UNIX for Dummies Questions & Answers
I'm trying to delete a folder in my trash that contains no files or hidden files and nothing happens. It is still there.
However, when I try to delete everything in the folder in terminal I receive an error: Ti?ng Viê?t.html: No such file or directory. I can't find this file anywhere on my tiger... (1 Reply)
Discussion started by: jopper
1 Replies
6. SCO
Hi.
We tried cloning a SCO Unix hard disk using Norton Ghost.
However, the new cloned hard disk encounter booting problem.
What possibly go wrong? (1 Reply)
Discussion started by: Mizan
1 Replies
7. UNIX for Dummies Questions & Answers
we are on aix5300-08. it reboot by itself. according to our unix admin and IBM support, they had seen this before. so, they asked her to apply latest AIX patch for 5300-08.
did anyone ever seen anything like this before ? (0 Replies)
Discussion started by: tjmannonline
0 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I am looking for help on how to use ghost 4 unix. I know there is a site for ghost 4 unix, but if I understood that I wouldn't be here. Everything is already set up, there is a ftp server, iomega network hard drive, there are already images on this network harddrive. I know how to use the... (0 Replies)
Discussion started by: slakk
0 Replies
9. AIX
Hi all,
I'm getting some errors on AIX regarding Flashcopy and volume group hard disks.
The script that activates flashcopy showed this errors:
Recreating Flashcopy for lun01_A1
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli... (1 Reply)
Discussion started by: enux
1 Replies
TTY(4) Linux Programmer's Manual TTY(4)
NAME
tty - controlling terminal
DESCRIPTION
The file /dev/tty is a character file with major number 5 and minor number 0, usually of mode 0666 and owner.group root.tty. It is a syn-
onym for the controlling terminal of a process, if any.
In addition to the ioctl(2) requests supported by the device that tty refers to, the ioctl(2) request TIOCNOTTY is supported.
TIOCNOTTY
Detach the calling process from its controlling terminal.
If the process is the session leader, then SIGHUP and SIGCONT signals are sent to the foreground process group and all processes in the
current session lose their controlling tty.
This ioctl(2) call only works on file descriptors connected to /dev/tty. It is used by daemon processes when they are invoked by a user at
a terminal. The process attempts to open /dev/tty. If the open succeeds, it detaches itself from the terminal by using TIOCNOTTY, while
if the open fails, it is obviously not attached to a terminal and does not need to detach itself.
FILES
/dev/tty
SEE ALSO
chown(1), mknod(1), ioctl(2), termios(3), console(4), tty_ioctl(4), ttyS(4), agetty(8), mingetty(8)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2003-04-07 TTY(4)