On Tue, Sep 25, 2001 at 08:42:34AM +0530, [EMAIL PROTECTED] wrote:
> I suppose TSR = Terminate (but) Stay Resident
> I have a few doubts on this front :
>
> 1. Does this mean , that once I switch my machine that
> is running a TSR, the TSR is gone ?
> I guess that for all programs , a shutdown or poweroff,
> stops the process.
>
This TSR thing is a DOS concept. Under Unix all programs
run as processes or daemons. They can be made to work in
the background as well, by appending an &:
e.g. updatedb & (will do the whole pocess of updating the
locate database in the background.
Any process can be seen with ps -ae | less
and killed with kill <process-no>
In a powerdown situation all will be lost, since this is
purely in RAM.
> 2. One of my friends said that if a TSR hits the machine,
> you might have to re-format the disk ! I dis-agree with
> him , because after all the TSR is a process, and as I
> already suggested a shutdown or poweroff will abruptly
> terminate it. Maybe because it writes itself into the
> Interrupt Vector Table, but a poweroff prevents that too,
> doesn't it ?
>
Are you talking about resident processes or viruses ? In all
cases ps -aef will tell you, what all are running, and you
can kill any of them manually any time. Unless the virus/
worm has put something inside your disk, power down state
will clear everything in memory.
> 3. Till date I believe that Unix/ Linux- based machines do
> not support TSRs, am I right ?
>
In DOS sense of the term YES. However almost any process can
be started in the background... which effectively is perhaps
more powerful than the DOS TSR, with no size limits, and the
code restricted to BIOS interrupts only.
Bish
--
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : DOS to Unix conversion (#1) LOST #025
Method #1:
To convert a DOS text file to Unix so that the extra ASCII 13
does not show up when viewing / editing a DOS text file.
$cat filename.dos | tr -d '\015' > filename.unix
####<[EMAIL PROTECTED]>####################################
:
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help