* background jobs / feature request
@ 1998-03-18 19:31 Timothy Luoma
1998-03-18 19:38 ` Christopher S. Turan
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Timothy Luoma @ 1998-03-18 19:31 UTC (permalink / raw)
To: ZSH USers; +Cc: ZSH Workers
Say I have several background jobs which I can see with jobs -l which are
either running in & mode or were control-Z'd into submission
[1] 11381 running tail -1f /tmp/console.log
[2] - 11839 suspended ls --ignore=.dir.tiff --ignore=.opendir.tiff
--ignore=.dir3_0.wmd --classify |
11840 suspended less
[3] + 11841 suspended find / -xdev -newer /etc/sendmail.cw -print
[4] 11767 suspended /usr/local/bin/pine -p
/Users/luomat/Unix/pine/pine.rc -sort arrival -f activ
Now I want to get #2 back... is there any way that ZSH could be made to
understand
fg \[2\]
or, better
fg 11839
?
This would be much more convenient, especially in the case of pine where I
have to type
fg /usr/local/bin/pine
TjL
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: background jobs / feature request
1998-03-18 19:31 background jobs / feature request Timothy Luoma
@ 1998-03-18 19:38 ` Christopher S. Turan
1998-03-18 19:41 ` Timothy Luoma
1998-03-18 20:30 ` Dusan Gabrijelcic
1998-03-18 19:48 ` Thomas Koehler
` (2 subsequent siblings)
3 siblings, 2 replies; 9+ messages in thread
From: Christopher S. Turan @ 1998-03-18 19:38 UTC (permalink / raw)
To: Timothy Luoma; +Cc: ZSH USers
Timothy,
Yes, there is. Try
fg %2
It needs a % before the job id number.
Regards,
-Chris
On Wed, 18 Mar 1998, Timothy Luoma wrote:
>
> Say I have several background jobs which I can see with jobs -l which are
> either running in & mode or were control-Z'd into submission
>
> [1] 11381 running tail -1f /tmp/console.log
> [2] - 11839 suspended ls --ignore=.dir.tiff --ignore=.opendir.tiff
> --ignore=.dir3_0.wmd --classify |
> 11840 suspended less
> [3] + 11841 suspended find / -xdev -newer /etc/sendmail.cw -print
> [4] 11767 suspended /usr/local/bin/pine -p
> /Users/luomat/Unix/pine/pine.rc -sort arrival -f activ
>
>
>
> Now I want to get #2 back... is there any way that ZSH could be made to
> understand
>
[snip]
--
Christopher Turan
Unix System Administrator
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: background jobs / feature request
1998-03-18 19:31 background jobs / feature request Timothy Luoma
1998-03-18 19:38 ` Christopher S. Turan
@ 1998-03-18 19:48 ` Thomas Koehler
1998-03-18 19:49 ` Andrew Main
1998-03-20 13:12 ` Kevin Sullivan
3 siblings, 0 replies; 9+ messages in thread
From: Thomas Koehler @ 1998-03-18 19:48 UTC (permalink / raw)
To: Timothy Luoma; +Cc: ZSH USers
On Wed, Mar 18, 1998 at 02:31:12PM -0500, Timothy Luoma wrote:
>
> Say I have several background jobs which I can see with jobs -l which are
> either running in & mode or were control-Z'd into submission
>
> [1] 11381 running tail -1f /tmp/console.log
> [2] - 11839 suspended ls --ignore=.dir.tiff --ignore=.opendir.tiff
> --ignore=.dir3_0.wmd --classify |
> 11840 suspended less
> [3] + 11841 suspended find / -xdev -newer /etc/sendmail.cw -print
> [4] 11767 suspended /usr/local/bin/pine -p
> /Users/luomat/Unix/pine/pine.rc -sort arrival -f activ
>
>
>
> Now I want to get #2 back... is there any way that ZSH could be made to
> understand
>
> fg \[2\]
>
> or, better
>
> fg 11839
>
> ?
Try this:
fg %2
CU,
Thomas
--
Thomas Köhler Email: jean-luc@picard.franken.de
<>< WWW: http://home.pages.de/~jeanluc/
IRC: jeanluc
LCARS --- Linux for Computers on All Real Starships
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: background jobs / feature request
1998-03-18 19:31 background jobs / feature request Timothy Luoma
1998-03-18 19:38 ` Christopher S. Turan
1998-03-18 19:48 ` Thomas Koehler
@ 1998-03-18 19:49 ` Andrew Main
1998-03-20 13:12 ` Kevin Sullivan
3 siblings, 0 replies; 9+ messages in thread
From: Andrew Main @ 1998-03-18 19:49 UTC (permalink / raw)
To: Timothy Luoma; +Cc: zsh-users, zsh-workers
Timothy Luoma wrote:
>fg \[2\]
fg %2
or just
%2
-zefram
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: background jobs / feature request
1998-03-18 19:31 background jobs / feature request Timothy Luoma
` (2 preceding siblings ...)
1998-03-18 19:49 ` Andrew Main
@ 1998-03-20 13:12 ` Kevin Sullivan
3 siblings, 0 replies; 9+ messages in thread
From: Kevin Sullivan @ 1998-03-20 13:12 UTC (permalink / raw)
To: zsh-users; +Cc: zsh-workers
Timothy Luoma writes:
>
> Say I have several background jobs which I can see with jobs -l which are
> either running in & mode or were control-Z'd into submission
>
> [1] 11381 running tail -1f /tmp/console.log
> [2] - 11839 suspended ls --ignore=.dir.tiff --ignore=.opendir.tiff
> --ignore=.dir3_0.wmd --classify |
> 11840 suspended less
> [3] + 11841 suspended find / -xdev -newer /etc/sendmail.cw -print
> [4] 11767 suspended /usr/local/bin/pine -p
> /Users/luomat/Unix/pine/pine.rc -sort arrival -f activ
>
>
>
> Now I want to get #2 back... is there any way that ZSH could be made to
> understand
>
> fg \[2\]
>
> or, better
>
> fg 11839
>
> ?
>
> This would be much more convenient, especially in the case of pine where I
> have to type
>
> fg /usr/local/bin/pine
>
I use this.
compctl -j -P '%' + -s '`ps x | tail +2 | cut -c1-5`' + \
-x 's[-] p[1]' -k "($signals[1,-3])" -- kill disown fg
which allows me to tab through current jobs. I got the basis for this
from someone, cann't remember who. It was originally designed for
'kill' only but I extended it for 'disown' and 'fg'. The nice thing
about this particular aproach is I don't have to perform an extra
command and muddy up my display.
Kevin Sullivan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: background jobs / feature request
@ 1998-03-18 20:20 Niall Smart
1998-03-19 3:44 ` Tien Dung Luu
0 siblings, 1 reply; 9+ messages in thread
From: Niall Smart @ 1998-03-18 20:20 UTC (permalink / raw)
To: zsh-users
if your really cool then you omit the "fg" and just type
%job-number at the prompt. only really cool people should
try this.
niall
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1998-03-20 13:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-18 19:31 background jobs / feature request Timothy Luoma
1998-03-18 19:38 ` Christopher S. Turan
1998-03-18 19:41 ` Timothy Luoma
1998-03-18 20:30 ` Dusan Gabrijelcic
1998-03-18 19:48 ` Thomas Koehler
1998-03-18 19:49 ` Andrew Main
1998-03-20 13:12 ` Kevin Sullivan
1998-03-18 20:20 Niall Smart
1998-03-19 3:44 ` Tien Dung Luu
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).