* job prob
@ Brian Tew
` Dave Mielke
0 siblings, 1 reply; 6+ messages in thread
From: Brian Tew @ UTC (permalink / raw)
To: blinux-list
David, thanks a million.
Thatworked perfectly.
Maybe I should quit while I'm ahead, but:
My jobs will not suspend with control z.
However, telnet will suspend with control right bracket and z.
When i try to suspend anything except telnet, it says
"cannot suspend on a shell without job control."
The enable command says fg and bg are enabled.
I am using bash right now.
How can I make the shell have job control?
And how come telnet can suspend?
Thank you.
Brian Tew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: job prob
job prob Brian Tew
@ ` Dave Mielke
0 siblings, 0 replies; 6+ messages in thread
From: Dave Mielke @ UTC (permalink / raw)
To: blinux-list
[quoted lines by Brian Tew on March 16, 2002, at 08:38]
Hi:
>My jobs will not suspend with control z.
Use "stty -a" to query your settings, and check what "susp" is set to.
>However, telnet will suspend with control right bracket and z.
Control-right-bracket is all that's necessary to suspend telnet. What I mean by
this is that it suspends the session and returns you to telnet command mode.
You can change this setting with telnet's "escape" command.
>When i try to suspend anything except telnet, it says
>"cannot suspend on a shell without job control."
>
>The enable command says fg and bg are enabled.
>I am using bash right now.
>How can I make the shell have job control?
It's hard, for sure, to know what your problem is. I believe you said you were
using an old system. This may be your problem. The bash man page says:
If the operating system on which bash is running supports
job control, bash allows you to use it.
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://familyradio.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* re: job prob
@ Brian Tew
0 siblings, 0 replies; 6+ messages in thread
From: Brian Tew @ UTC (permalink / raw)
To: blinux-list
echo $- gives imH
i like india
m like mike
and capital h as in hotel
I guess this is why they call it 5.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* re: job prob
Brian Tew
` Dave Mielke
@ ` Dave Mielke
1 sibling, 0 replies; 6+ messages in thread
From: Dave Mielke @ UTC (permalink / raw)
To: blinux-list
[quoted lines by Brian Tew on March 19, 2002, at 04:55]
>if i start a job with the ampersand at the end, it is backgrounded.
>but if i then fg that job, i cannot suspend it.
I think I know what's going on. If I'm not mistaken, you're the same guy who's
also using the VBii+, and starting bash from rc.local. If I'm remembering
correctly, you're invoking bash via su with "&>/dev/ttyS0" in order to redirect
all output to the VersaBraille. Therein may lie your problem. Speaking to what
old software does (I believe you also said you're using RedHat 5.2) is always
difficult, but here's a possibility.
Bash only automatically turns on its interactive mode if both its standard
input and standard output are connected to a tty. Strictly speaking, standard
output, being connected to /dev/ttyS0, is connected to a tty. The fact that
it's not the foreground tty, however, may be what's causing your problem. Bash
may not think it should start up in interactive mode. You can tell if it's in
interactive mode by looking at the content of the special environment variable
"$-" (dollar minus). If it doesn't contain the ltter "i", then bash isn't in
interactive mode.
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://familyradio.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* re: job prob
Brian Tew
@ ` Dave Mielke
` Dave Mielke
1 sibling, 0 replies; 6+ messages in thread
From: Dave Mielke @ UTC (permalink / raw)
To: blinux-list
[quoted lines by Brian Tew on March 19, 2002, at 04:55]
>if i start a job with the ampersand at the end, it is backgrounded.
>but if i then fg that job, i cannot suspend it.
Are you using the system directly, i.e. typing at its console, or are you using
some other method?
--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://familyradio.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* re: job prob
@ Brian Tew
` Dave Mielke
` Dave Mielke
0 siblings, 2 replies; 6+ messages in thread
From: Brian Tew @ UTC (permalink / raw)
To: blinux-list
weird, weird, weird.
if i start a job with the ampersand at the end, it is backgrounded.
but if i then fg that job, i cannot suspend it.
how can that be, mister wizzard?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
job prob Brian Tew
` Dave Mielke
Brian Tew
` Dave Mielke
` Dave Mielke
Brian Tew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).