LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-12-2006, 03:21 PM   #1
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Rep: Reputation: 0
Unhappy Job control problem (Ctrl-z)


I ahve a Linux PPC box with WindRiver kernel 2.6.10. The problem is if I am doing vi a file, when I am in command mode (not insert mode) I suppose to be able to suspend to the shell with Ctrl-z like any other Linux boxes(command :suspend also does not work). But I cannot on this box. Could somebody please tell me why and how to fix it or where to look at. This is for my work, embedded application. I have searched this forum for hours, went through all posts (search words: "job control" and Ctrl-z) one by one but did not found it. The issue is not just with vi, the issue is some how the process just ignore SIGSTOP or something like that but it is easiest to show with vi, it could be the same with cat command or any other commands. Thank you very much in advance. Please help me.
 
Old 12-12-2006, 04:31 PM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
It may have to do with what shell you are using. Try this:
Code:
chsh /bin/bash
vi MYFILE
See if CTRL-Z works now.
 
Old 12-13-2006, 08:42 AM   #3
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi i_grok,
Thank for reply. My system has only BASH shell. It does not has chsh command either. Because it is embedded system I guess they strip everything out. If I enter bash -version, it show:
GNU bash, version 3.00.0(1)-release (powerpc-wrs-linux-gnu)
Could it has bug in "powerpc-wrs-linux-gnu" version? How can I prove that?
Please let me know if you have any other ideas. Thanks.
 
Old 12-13-2006, 11:44 PM   #4
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
Ok. Try to find out if CTRL-z works at all - does it work with commands other than vi? Try this:
Code:
cat
CTRL-z
If even that doesn't work then we know for sure bash is doing something weird. Does CTRL-/ work? How about CTRL-c?
 
Old 12-15-2006, 09:27 AM   #5
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi i_grok,

Yes, the problem of ctrl-z is the same with cat. Ctrl-c and Ctrl-/ are OK.
However, I found out that if I replace the /bin/bash with "bash" from FC4 then Ctrl-z is OK. My guess is this "bash" was compiled with a cross compliler and therefore the option --enable-job-control (and may be other options as well) was disable since they can not tell if the system (can be either ppc or x86)would support job control. But I still can find that in the Makefile or configure, I am still searching if indeed that is the reason (The tool chain come pre-build).

Thank you very much for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
control job turned off greythorne SUSE / openSUSE 0 08-14-2005 02:58 AM
cron error: no job control schentor Linux - Software 2 07-18-2005 12:39 PM
Job control King4lex Linux - Newbie 3 08-16-2004 12:50 PM
Unix Job Control in C apydia Programming 3 05-08-2004 11:29 AM
can't access tty; job control turned off johnnybezak Linux - General 4 02-21-2004 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration