ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] auto-exec on Linux login ?
Ingo Pakleppa
27 Oct 2003 23:38:12 -0800

If you put it into /etc/profile, it will be run as whatever user is
logged on. Note that there may be several users logged on at the same
time. And, in particular, that some daemons would also execute
/etc/profile.

Try "ps aux" to find out which user owns the process that you can't
kill.

Also, note that there are several ways of killing a process. If you
simply use "kill <pid>" then you are really just sending a signal to the
process that the process can choose to heed or ignore, much like Alt+F4
for Windows applications.

If you want to do a "hard kill" and abort the process *right now*, then
you'd have to use "kill -9 <pid>". The -9 signal cannot be trapped by
the process, and will always kill it immediately in the middle of
whatever it is doing. And it should always succeed as long as you are
either the process owner or root.

On Mon, 2003-10-27 at 06:01, Mark Gilmore wrote:
> Can anyone tell me how to automatically run a pgm(s)
> *as if the user ran them* when they login ?
> If I place the cmds in /etc/profile, it apparently runs them with some other
> "ownership" or privilege (as I cannot kill the processes).
> Thanks,
> 
> Mark Gilmore
> http://OmnipotenceSoftware.com
> 
> ______________________________________________________________________
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.