From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QFKTW-0002hW-Dz for garchives@archives.gentoo.org; Thu, 28 Apr 2011 06:13:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAAF51C012; Thu, 28 Apr 2011 06:11:47 +0000 (UTC) Received: from webmail.majordomo.ru (webmail.majordomo.ru [78.108.81.8]) by pigeon.gentoo.org (Postfix) with ESMTP id 65BDB1C012 for ; Thu, 28 Apr 2011 06:11:47 +0000 (UTC) Received: from nobody by webmail.majordomo.ru with local (Exim 4.74 (FreeBSD)) (envelope-from ) id 1QFKS2-000936-3n for gentoo-user@lists.gentoo.org; Thu, 28 Apr 2011 10:11:46 +0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Scripts not working... HELP! X-PHP-Originating-Script: 65534:compose2.php Received: from 217.151.131.12 (auth. user shumkar@shumkar.ru@192.168.0.44) by with HTTP; Thu, 28 Apr 2011 10:11:46 +0400 X-IlohaMail-Blah: shumkar@shumkar.ru X-IlohaMail-Method: mail() [mem] X-IlohaMail-Dummy: moo X-Mailer: IlohaMail/0.8.14 (On: ) Message-ID: In-Reply-To: <20110428054001.GA3033@waltdnes.org> From: "Alexey Mishustin" Bounce-To: "Alexey Mishustin" Errors-To: "Alexey Mishustin" Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: quoted-printable Date: Thu, 28 Apr 2011 10:11:46 +0400 X-Archives-Salt: X-Archives-Hash: 98b8afb516a0e2f0c49cab56e3619cdf 4/28/2011, "Walter Dnes" wrote: > This message is coming from my 32-bit "hot backup" gentoo machine. >For some reason, any script that I call on my 64-bit machine immediately >returns to the command prompt. No warnings or error messages or >diagnostics. Builtins and compiled executables work OK. For instance, >if I have a script named "xyz" that goes like so... > >#!/bin/bash >man bash > >..., executing "xyz" or "~/bin/xyz" results in bash immediately >returning to to the command prompt. If I type "man bash", it works OK. I am not an expert in scripts at all, but I remember there is difference between interactive and non-interactive shells that could cause things like this. What happens if you try to execute a script with non-interactive command? For example: #!/bin/bash echo "I am script" And, just for a case... Are all scripts executable? (+x) -- Regards, Alex