On Wed, Jun 12, 2002 at 05:06:16PM +0800, henry wrote:
> Now I open emacs & make it sleep ,I open emacs & make it sleep ,I open emacs &
>make it sleep .
> ( pls forgive me , English is not my native language .)
> How could I wake up any of them by their PID ? (I see their PID by using "ps -A")
Use `jobs' to find its job number, then pass the job number to `fg'.
Here's an example:
1. Start three emacs sessions:
[johnc@dropbear ~]$ emacs file1 &
[1] 4077
[johnc@dropbear ~]$ emacs file2 &
[2] 4078
[johnc@dropbear ~]$ emacs file3 &
[3] 4079
2. Look at which jobs are running:
[johnc@dropbear ~]$ jobs
[1] Running emacs file1 &
[2]- Running emacs file2 &
[3]+ Running emacs file3 &
3. Bring one to the foreground using its job number:
[johnc@dropbear ~]$ fg %2
emacs file2
Cheers,
John
--
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug