Check PPID for sshd in your bashrc: if /bin/ps -cp $PPID | grep -q sshd; then # start something here fi
On Wed, 2003-06-04 at 15:12, Jeff Greene wrote: > Hey, > > I'm trying to get a program to startup right when I > log in remotely into a bash shell through SSH. I > looked at the bash manual and I tried all of the files > (~/.bash_rc, ~/.bash_profile, etc.) or at least most > of them. The bash maunal says that different files get > read on startup depending on how the shell is being > started. I guess what I can't figure out is what > category "starting a shell remotely using SSH" falls > into. If anyone knows the answer, could you help me > out? Thanks. > > --Jeff > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > > -- > [EMAIL PROTECTED] mailing list > -- [EMAIL PROTECTED] mailing list