On 02/10 05:34 , Craig Barratt wrote:
> The most likely cause is that root's .cshrc (or equivalent) is doing
> an stty.  You should change it so that it doesn't do an stty on a
> non-login shell.  For csh/tcsh you could do something like this
> 
>     if ( ! $?USER || "$prompt" == "" || ! $?term ) then
>         # done for non-interactive shell 
>         exit
>     endif

One way to do an equivalent thing in bash, is this:

case $- in
  *i*) : # interactive
     # commands for interactive shells go here
     stty erase ^?
    ;;
  *)  : # non interactive
     # commands for non-interactive shells go here
    ;;
esac


I found this tip at:
http://www.samspublishing.com/articles/article.asp?p=29461&rl=1

and just tried it. seems to work for me.

-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to