Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Whenever i start my computer up, the first program that i run hangs when i try to suspend it with ctrl+z.
So, for example: i boot up, log in, run the "yes" command, hit ctrl+z, and "yes" hangs, i have to go to tty2 and do a kill -9 on yes. after that i can suspend a job with no problem, but its really annoying if i forget because i'll start up X and run something like firefox from a terminal, then try to ctrl+z out of it(after a little browsing), and hang firefox.
a fix would be nice, but i'm also just plain interested in finding out what's causing it. i think it may be something involving the kernel or sighup or something, but i really have no clue.
i'm running a very fresh install of slackware 10.2 with the slackware bare.i kernel. any ideas?
Last edited by slinky2004; 06-19-2006 at 01:11 PM.
Sending Ctrl-Z suspends a job, "fg" continues it in foreground as posted already. "bg" continues it in the background (useful to keep firefox open while continuing typing commands in your terminal).
Launching jobs with "&" afterwards should launch them directly in the background.
ie try:
firefox &
instead of just
firefox
and you'll be able to continue working in your terminal (command line) and firefox is still started.
I'd go with spooon's suggestions. Ctrl-D is typically used to close off input streams too.
Try using:
mail -s some_subject some_destination
=> this will start mail and allow you to type in the mail's body.
=> End the e-mail content with Ctrl-D.
and voilą, the mail gets sent out...
Similarly, try doing just:
cat
and stopping that with Ctrl-D, Ctrl-Z, etc and see what the difference really is.
sorry about that, i mixed up stop and suspend. any ideas why the first program i run hangs when i try to suspend it?
OK, maybe you haven't quite defined this hang event for us.
When you ctl-z a program, it suspends. It doesn't die, just sits around waiting for you to do something while you have a command prompt back. Are you getting the prompt, or does output of 'yes' stop and you get no prompt?
If you have the prompt, does doing a 'bg' continue the process?
i don't get the prompt back. the program stops(in the case of "yes" it stops printing y), but i don't get the prompt back. thats why i have to switch to another tty in order to kill it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.