Re: /etc/bashrc causing probs..

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



Roland RoLaNd wrote:
> Hello,
> i've appended the below to /etc/bashrc, which is causing an error once i
> try to rsync using ssh to this specific box.
> any idea how to prevent bashrc to execute the below to a no login shell
> ? or any other advice for that matter.

you might try putting your block of code in:
if [ -n "$PS1" ] ; then
<your code>
fi

this way it's only executed in interactive shells.
_______________________________________________
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