Admin-Ahead Community

Linux => General Linux => Topic started by: dustin on August 13, 2014, 07:35:39 am

Title: “STDIN: IS NOT A TTY” ERROR
Post by: dustin on August 13, 2014, 07:35:39 am
Got the following error while trying to copy some files from one server to another with rsync.

To fix this,

1.Login to your server where you wish to run rsync
2.If you are root the got to /root dirctory. if you are logging in as another user go to home directory of that user which usually at /home/username.
3.Edit a file named .bashrc
4.Now add these lines below to the top of your .bashrc file:
[ -z "$PS1" ] && return
5.Then save file and quit.

Now you can rsync without any issue.