Jamie Wilkinson wrote: > > This one time, at band camp, Mike Lake wrote: > >The problem is that when ssh logs into root .bashrc & .profile gets run > >and there is some output from the login shell. This is prepended to the > >tar file so its not a tar file anymore. I can see the lines of the login > >if I run "/test | more". > > 'touch .hushlogin' will tell the login shell not to print the motd and so > on, you can make sure that the rest of .profile doesn't output anything on > login.
But that only turns off the /etc/motd message. Not anything output by .bashrc. I have a few things echoed to the screen by .bashrc I can turn them off but there must be a way to ignore output of ssh before root runs the tar program. Mike -- -------------------------------------------------------------------- Michael Lake Active caver, Linux enthusiast and interested in anything technical. Safety Convenor, Australian Speleological Federation Owner, Speleonics (Australia) -------------------------------------------------------------------- -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
