Re: /etc/bashrc help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Roland Roland wrote:
>
>    Dear all,
>
> i've appended the below to /etc/bashrc it works like a charm with ssh
> connections though SFTP sessions fail since the below is being sent to
> the intiator.
> any way of limiting the below to none sftp sessions? or any other idea
> for it to work?

I have the following in a bashrc for this same reason, it works fine:

# print a fortune in new interactive terminals
# the test for $PS1 (value of the prompt) makes sftp work
if [ -n "$PS1" ] ; then
     fortune ; echo
fi
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux