ssh(putty) session particularity

Often I develop and control process using ssh(putty) session. Connection with server allow me monitor and do related sub-task like svn/cvs updates.

I don't like when my session give timeout message - server require activity. I use "top" on my local server, but some third party environment don't allow me this (have not access to top!), so I just thinking about this situation after couple minutes of googling discover 'watch' command.

It is so easy:

watch ls

and you session keep alive

Grids as options

option list via direct lists for multiple grids (http://forum.tufat.com/showthread.php?p=153689)

To implement this feature in your skin, you need to apply next changes
index.tpl:

{if $links}
{foreach item=link from=$links}
{$link}   
{/foreach}
{/if}

replaced with:

{if !$app->setting->grids_as_options}
{if $links}
{foreach item=link from=$links}
{$link}   
{/foreach}
{/if}
{/if}

after this line


in toolbar.inc.tpl
insert next code:

{if $app->setting->grids_as_options}
##Grid:##

{html_options options=$grids_names selected=$smarty.request.grid}
   
{/if}

Tags:

FreeBSD's sockstat Linux(debian)

Many years I used FreeBSD as my server invioroment, but before 6 months I migrate to Debian Linux, because I have no time to compile packages from sources.

So, now I work with Debian and I am newbie. Common action when some network application don't work is to review opened ports. FreeBSD have very good utility sockstat. I don't found something like this in Debian and I googled, as result I discover next alternatives for sockstat:

  • lsof -i
  • netstat -anpe

in this example netstat don't show fd+uid, but for this socklist can used

Tags: