Wednesday, January 25, 2017

Re: GNU screen hardstatus line

2017-01-25 19:12 GMT+03:00 Allan <mahe6562@gmail.com>:
> Hi
>
> Is there a way to note down the starting time or the duration of the current screen session? I always resume after a long time after and feel it would be helpful to know when the screen session was started.

`ps -p {process id} -o etime` (for the current shell: `ps -p $$ -o
etime`). Universal, works for every app. Though can't say how this
interacts with hibernation and <C-z> suspends.

May need to check `pstree -p -h` or `ps -t $TTY` to get `{process id}`.

>
> Thanks
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment