[CentOS] /etc/bashrc causing probs..
Nicolas Thierry-Mieg
Nicolas.Thierry-Mieg at imag.frThu Jan 13 13:55:45 UTC 2011
- Previous message: [CentOS] /etc/bashrc causing probs..
- Next message: [CentOS] /etc/bashrc causing probs..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [CentOS] /etc/bashrc causing probs..
- Next message: [CentOS] /etc/bashrc causing probs..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list