From: Dave Hylands <dhylands@gm...> - 2009-11-17 07:10:53
On Mon, Nov 16, 2009 at 7:22 PM, Alex4 <alex.fielding@...> wrote:
> How to automatically start a program after a user logs in via ssh (dropbear)?
When you ssh into a linux machine, it normally runs a shell.
If it's a bash shell, you can put commands to execute in the ~/.bashrc file.
If it's a different shell, then you need to find out how that shell
performs its initialization. On the gumstix, using busybox, this often
means that its the ash shell. I think that the ash shell sources
/etc/profile and ~/.profile when it starts. You'd need to check the
source to be sure.
Shuswap, BC, Canada