LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-23-2007, 12:17 AM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 207Reputation: 207Reputation: 207
output of jobs command


Code:
[root@sage gz_files]# jobs
[1]   Running                 tar -czf mp3.tar.gz ../Media/MP3/ &
[2]-  Running                 tar -czf pictures.tar.gz ../Media/Pictures &
[3]+  Running                 tar -czf audio.tar.gz ../Media/Audio/ &
what are the plus and minus signs for?
 
Old 06-23-2007, 01:07 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 30
man jobs doesn't hurt
Quote:
The character '+' identifies the job that would be used as default for the fg or bg utilities; this job can also be specified using the job_id %+ or "%%" . The character '-' identifies the job that would become the default if the current default job were to exit; this job can also be specified using the job_id %-.
 
Old 06-23-2007, 01:14 AM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 207Reputation: 207Reputation: 207
my man pages had jobs under bash bulletins ... didn't seem to have any info on the +/-. Probably should have looked for a different manual version online before coming here... Thanks for the answer though!
 
Old 08-27-2007, 12:06 AM   #4
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Try here...http://en.wikipedia.org/wiki/Job_Control_Language...and here as well...http://en.wikipedia.org/wiki/Job_control...good luck to YOU.
 
Old 08-27-2007, 04:30 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally Posted by jhwilliams View Post
my man pages had jobs under bash bulletins ... didn't seem to have any info on the +/-. Probably should have looked for a different manual version online before coming here... Thanks for the answer though!
Yup ... a bash built-in.
Quote:
Originally Posted by man bash
Code:
       job stopped while it was in the foreground  or  started  in  the  back-
       ground.   The  previous job may be referenced using %-.  In output per-
       taining to jobs (e.g., the output of the jobs command), the current job
       is  always flagged with a +, and the previous job with a -.  A single %
       (with no accompanying job specification) also  refers  to  the  current
       job.
Of course RedHat may have fubared the man-pages for bash ...



Cheers,
Tink
 
  


Reply

Tags
bg, fg, jobs, plus


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
whats the (wd:...) in the table of the jobs command? merlin23 Linux - Newbie 3 08-13-2013 04:15 PM
running the make command, speifying jobs jayeola Linux - Kernel 0 07-02-2006 08:23 AM
What is the command that use to get these output shinwai Linux - Newbie 2 08-31-2005 08:26 AM
jobs command iNET_boss Linux - General 2 06-08-2005 06:34 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration