[sub] RE: [Sussex] emerge and go...

Paul Turner pturner at rentokil.com
Thu Oct 16 12:50:36 UTC 2003


Dominic,

Can't you just redirect the output of the command and send it to the
background.

something like:

emerge [emerge parameters] >mylogfile & >&1

when you run this you will get the process is that is created.

e.g.

[root at LAE082LX01 pturner]# ls -la >./xx & >&1
[1] 32030
[root at LAE082LX01 pturner]# more ./xx
total 88
drwxr-xr-x    4 pturner  developer     4096 Oct 16 13:57 .
drwxrwxr-x   31 root     developer     4096 Oct 14 09:16 ..
-rw-------    1 pturner  developer    16366 Oct 16 10:52 .bash_history
-rw-r--r--    1 pturner  developer       24 Sep 11 09:17 .bash_logout
-rw-r--r--    1 pturner  developer      234 Sep 11 09:22 .bash_profile
-rw-r--r--    1 pturner  developer      124 Sep 11 09:17 .bashrc
-rw-r--r--    1 pturner  developer      820 Sep 11 09:17 .emacs
drwxr-xr-x    3 pturner  developer     4096 Sep 11 09:17 .kde
-rwxrwxr-x    1 pturner  developer    24291 Sep 30 12:02 PClocation.html
-rw-r--r--    1 pturner  developer     3511 Sep 11 09:17 .screenrc
drwx------    2 pturner  developer     4096 Sep 11 09:45 .ssh
-rwxrwxrwx    1 pturner  developer      200 Sep 24 11:33 test.sh
-rw-------    1 pturner  developer     7871 Oct 15 10:32 .viminfo
-rw-rw-r--    1 root     root            0 Oct 16 13:57 xx
[1]+  Done                    ls --color=tty -la >./xx
[root at LAE082LX01 pturner]#

p.s. you may also want to redirect stderr as well as stdout.

Regards paul.



----- Original Message ----- 
From: "Dominic Clay" <dominic.clay at cardinus.com>
To: <sussex at mailman.lug.org.uk>
Sent: Thursday, October 16, 2003 1:32 PM
Subject: [sub] RE: [Sussex] emerge and go...


> >I use VNC to do exactly this.
>
> Thanks, but... I don't actually have X on this machine...  I understand
> that this is required for vnc?  Am I wrong here???
>
> Any other possibilities?
>
> Cheers,
> Dominic
>
>
> _______________________________________________
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/sussex


_____________________________________________________________________
This message has been checked for all known viruses by 
MessageLabs on behalf of Rentokil Initial plc





More information about the Sussex mailing list