LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2012, 05:09 PM   #1
dannyman179
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Question foreground


i am trying to use the fg command, but every time i do it says
"bash: fg: current: no such job" and i cant find out why. PLEASE help!!!
 
Old 06-07-2012, 06:10 PM   #2
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by dannyman179 View Post
i am trying to use the fg command, but every time i do it says
"bash: fg: current: no such job" and i cant find out why. PLEASE help!!!
More information would be helpful. What OS (fedora, cent, arch?) are you using and what desktop (kde, gnome, xfce?)? Also, in what program are you using fg?

Giving us all the information you can will help us give an appropriate answer. This includes the above and such things as displayed error messages and any pertinent logs or comments. We will filter out what we need to give you our best answer.

Tom

Last edited by tommyttt; 06-07-2012 at 06:11 PM.
 
Old 06-07-2012, 09:21 PM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Quote:
Originally Posted by dannyman179 View Post
i am trying to use the fg command, but every time i do it says
"bash: fg: current: no such job" and i cant find out why. PLEASE help!!!
Since there is somewhat of a lack of information I am going to go out on a limb here.
what are you putting in for a job number. If it has 3 or 4 digits, I can assure you it is not a job. Process number are different than job numbers. the term jobs would be analagous to what windows calls applications in task manager.

Typing "jobs" displays your jobs with job numbers. If you do not see any, you have nothing to bring to the foreground.

example (which will make your processor really happy)

Code:
cat /dev/urandom > /dev/null &
This puts a useless program in the background. you will probably see a job# in brackets and a process number afterwards.

type "jobs" and you should see that job number again.

now type "fg 1" assuming thats your job number.
There is your process. press ctrl + C to exit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Foreground vs Background gothrog Linux - General 3 07-08-2011 10:13 AM
To bring a window in the foreground dale_chip Programming 3 04-05-2008 07:30 PM
Background and Foreground Datamike Linux - Software 2 01-20-2006 04:20 PM
wine not in foreground ? kron1234 Linux - Games 1 06-01-2005 03:37 PM
loading foreground nautilus_1987 Slackware 6 10-10-2002 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 AM.

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