From: "Alexey Mishustin" <shumkar@shumkar.ru>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Scripts not working... HELP!
Date: Thu, 28 Apr 2011 10:11:46 +0400 [thread overview]
Message-ID: <lbC4MbnU.1303971106.0829020.shumkar@shumkar.ru> (raw)
In-Reply-To: <20110428054001.GA3033@waltdnes.org>
4/28/2011, "Walter Dnes" <waltdnes@waltdnes.org> 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
next prev parent reply other threads:[~2011-04-28 6:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 5:40 [gentoo-user] Scripts not working... HELP! Walter Dnes
2011-04-28 6:11 ` Alexey Mishustin [this message]
2011-04-28 6:12 ` Norman Rieß
2011-04-28 10:21 ` Alex Schuster
2011-04-28 22:16 ` [gentoo-user] [SOLVED] " Walter Dnes
2011-04-29 7:25 ` Norman Rieß
2011-04-29 8:31 ` Mick
2011-04-29 8:41 ` covici
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lbC4MbnU.1303971106.0829020.shumkar@shumkar.ru \
--to=shumkar@shumkar.ru \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox