I have been using the outline capabilities to track processes for IR and
/or digital forensic activities where procedures are paramount. LEO has
been fantastic with helping to maintain a focus while also capturing notes
and findings. I am however wanting to cross the divide where I can begin
scripting such activities. I would like to know how to invoke a shell, pass
it commands, and render the stnd output back into Leo as a subnode. Merging
to two functions below for example to run pslist and then populate a
subnode with the results. Ultimately I want to run additional scripts
and/or CLI utilities that parse logs and or memory dump files using CLI
tools such as grep and awk and sed, etc. while capturing the results.
Another goal would be to to invoke other python scripts, for example the
Pyed Piper "http://code.google.com/p/pyp/" to munge over logs using just
python.
Does anyone have any such samples and/or direction regarding such.
Scripting is kinda my latest endeavour so I am not quite sure.
*
*
1)
d = c.scanAllDirectives(p)
# g.es(g.dictToString(d)) #uncomment to show results of above in log
panen
path = d.get('path')
name = p.anyAtFileNodeName()
if name:
name = g.os_path_finalize_join(path,name)
g.es(name)
from subprocess import Popen
Popen('gnome-terminal', cwd=path) # debian, ubuntu
2)
top = p.insertAfter()
top.h = "Collection of Days"
for day in 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun':
nd = top.insertAsLastChild()
nd.h = day
for time in '08:00', '10:00', '12:00', '14:00', '16:00':
subnd = nd.insertAsLastChild()
subnd.h = time
c.redraw()
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/leo-editor/-/2MGhOF9S9nIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.