X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Message-ID: <4C810A71.6060101@bopp.net> Date: Fri, 03 Sep 2010 09:47:13 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to get a script file to use bash and ssh References: <29608117 DOT post AT talk DOT nabble DOT com> <4C7FFCCE DOT 7040207 AT budcat DOT com> <4C800078 DOT 9040101 AT bopp DOT net> <4C800C26 DOT 1090907 AT bopp DOT net> <155330114 DOT 20100903135029 AT mtu-net DOT ru> In-Reply-To: <155330114.20100903135029@mtu-net.ru> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam On 9/3/2010 4:50 AM, Andrey Repin wrote: > Greetings, Jeremy Bopp! > >> Assuming, of course, that the necessary entry in /etc/passwd is set >> correctly. > > Even if not. > Or not set. > > $ grep $USER /etc/passwd > [...]:/cygdrive/c/home/Daemon:/bin/bash > > $ ls -l /cygdrive/c/home/Daemon > ls: cannot access /cygdrive/c/home/Daemon: No such file or directory > > $ set | grep HOME > HOME=/c/home/Daemon > HOMEDRIVE=C: > HOMEPATH=/home/Daemon > > $ ls -l $HOME > total 8015 > drwxr-xr-x 1 Daemon Отсутствует 0 2010-08-29 19:21 Application Data > ... > >> The OP sounds pretty green and may have a different idea of >> his home directory's location than Cygwin deduces, so a little extra >> hand holding may be in order. :-) > > May be... but it seems, that cygwin deduction is pretty accurate. After looking at it in more detail, I agree that you're most likely correct. Since the OP isn't asking more questions about this, I guess things are working for him in any case. -Jeremy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple