Software > F.A.Q.s
[Solved] [Usefull] STunnel log displayed in HFS
SilentPliz:
I managed to displayed the Stunnel log in hfs with:
A file hfs.events:
[connected]
{.add to log|{.load|stunnel.log.}|ClBlue.}
But stunnel.log, can't be destroyed when Stunnel runs, the file grows bigger ...
The macro Delete is impossible ... I am looking if someone has an idea.
This kind of thing also does not work:
Just an example:
{.set|hfslog|{.load|hfslog.txt.}.}
{.set|stunnellog|{.load|stunnel.log.}.}
{.save|hfslog.txt|{.cut|{.length|{.^hfslog.}.}|{sub|{.length|{.^stunnellog.}.}|{.length|hfslog.}.}|{.^stunnellog.}.}.}
rejetto:
your purpose is to show only new lines of the file?
SilentPliz:
Short answer.... yes ;D
rejetto:
what about this? (untested)
{.set|s|{.load|stunnel.log.}.}
{.set|past|{.load|stunnel.last.}.}
{.save|stunnel.last|{.length|{.^s.}.}.}
{.cut|-{.^past.}||{.^s.}.}
rejetto:
i will introduce a new way for {.length|{.^s.}.}
because it is common but absurdly slow for very long text.
from next build you'll be able to use {.var length|s.}
Navigation
[0] Message Index
[#] Next page
Go to full version