-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Am 30.12.2010 04:01, Alan Warren wrote:
> Thanks Uli,
>
> How would I get the information from this?
>
>  $ ls -l /proc/$(pidof awesome)/fd/2
> l-wx------ 1 alan alan 64 Dec 29 20:53 /proc/5207/fd/2 -> pipe:[7122]
>
> Thanks

Uhm, no idea. pipe means that some other process receives the output of 
awesome...

I just had an idea:

$ /bin/cat /dev/zero | /bin/sleep 120

PID of cat is 5103 and ls -l says /proc/5103/fd/1 -> pipe:[58525]

$ for x in  /proc/*/fd/* ; do echo -n "$x " ; readlink $x ; done | grep 58525
/proc/5103/fd/1 pipe:[58525]
/proc/5104/fd/0 pipe:[58525]

So this tells my that PID 5104 is the process that is receiving this output.


Alternative plan
- ----------------

How do you start awesome? Via ~/.xsession? How does that file look like?

Uli

- -- 
The Angels have the phone box!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJNHGazAAoJECLkKOvLj8sGPzMIALiP088YBUg6Klg5CkeywHrs
a4qBrh13kpT2hwb2/RnwbuO+pHmjRsG7TRPwc6uTnzJeuQN6zzs96wJgrrSpJ8gw
0GfSP3ymG7hf1h+esm8uMkTrpgQMylVg68kxRoYaTWvWotcIeFow0Ck9f6AML4/u
XKFZwLaNGb+5DNPdjci9qBZQZLyvjEoTEtgYtr6EDumfRbmvi0MnnWSheWUrZTLa
yu2zXXEs1+ktPyBI9cmGbjfrne5gsAE+sYAUX0jlMEffaDIRwe6FWA7A7yMt4Inm
ayealZNqZBEVyWGzB1VB/md/0YsCovZoscbMrOYu7gYJZyWLuE8ixWG8edzxkuI=
=5Hpn
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to [email protected].

Reply via email to