Skip site navigation (1)Skip section navigation (2)
From:      Vivek Khera <khera@kcilink.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: sftp/ssh quell shell?
References:  <20020617024407.T58869-100000@earl-grey.cloud9.net>

| previous in thread | raw e-mail | index | archive | help
>>>>> "PL" == Peter Leftwich <Hostmaster@Video2Video.Com> writes:

PL> Glad you asked.  A few months ago when I began -- to no end --
PL> experimenting to get scp (and qpopper) to work, the problem I kept running
PL> up against seemed to be that I was running tcsh as my shell on both the
PL> local FreeBSD box and the destination FreeBSD box.  All I wanted to do was
PL> securely transmit my password and copy a large tarred directory!  Grrr..

Usually the problem is that your .cshrc file emits output when it
shouldn't.  Here's the normal trick I was taught back in '85. Put this
at or near the top of your .cshrc file.  Obviously, my .cshrc file was
set up to work on multiple environments... ;-)

# if non-interactive, do not set up aliases, etc., but set path.
if ($?prompt == 0) then
	# compensate for SunOS braindamage: umask is set in login, and
	# the default is 0, not 022.
	umask 022
	setenv WHICHWINDOW x	# assume the most liberal PATH
	source ${HOME}/.setpath
	exit
endif


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>