Re: Calling User Program
- From: Greg Wooledge <wooledg@xxxxxxxxxxx>
- Date: Wed, 26 Aug 2009 08:23:23 -0400
On Tue, Aug 25, 2009 at 07:24:14PM -0430, Alberto Mijares wrote:
On Tue, Aug 25, 2009 at 6:41 PM, linux newbie<linux.newbie79@xxxxxxxxx> wrote:
I am running sshd (version 5.2.p1) in my embedded platform [...]
I like to do some modifications. i.e. After typing username and
password, I want to run a application program directly instead of
prompt.
For wide-system setting:
/etc/profile (sh & bash)
Per-user settings:
~/.profile (sh & bash)
~/.bash_profile (bash)
Another way would be to change the user's shell, from something like
/bin/bash or /bin/sh, to the program you want to execute (e.g.
/usr/local/bin/myscript). Make sure your embedded OS permits this
to be used as a shell, for example by putting it in /etc/shells, if
your embedded OS requires that.
- References:
- Calling User Program
- From: linux newbie
- Re: Calling User Program
- From: Alberto Mijares
- Calling User Program
- Prev by Date: Re: Calling User Program
- Next by Date: Re: Calling User Program
- Previous by thread: Re: Calling User Program
- Next by thread: Re: Calling User Program
- Index(es):
Relevant Pages
|