Gremlin console's history

157 views
Skip to first unread message

Viktoras Veitas

unread,
Oct 1, 2012, 11:42:06 AM10/1/12
to gremli...@googlegroups.com
Hello,

What is a way to access the history of Gremlin console in a way similar to "history" command of the bash shell?
I think Pierre mentioned some time ago that this is possible, but I never managed to find how....

Thanks,
Viktoras

Marko Rodriguez

unread,
Oct 1, 2012, 11:44:57 AM10/1/12
to gremli...@googlegroups.com
Hi,

Gremlin's history is in a filed called:

.gremlin_groovy_history

..in your user home directory.

~$ ls -all .gremlin*
-rw-r--r-- 1 marko staff 13585 Sep 25 10:10 .gremlin_faunus_history
-rw-r--r-- 1 marko staff 14271 Sep 30 09:53 .gremlin_groovy_history
-rw-r--r-- 1 marko staff 17736 Sep 28 18:17 .gremlin_titan_history

HTH,
Marko.

http://markorodriguez.com
> --
>
>

Viktoras Veitas

unread,
Oct 1, 2012, 12:42:28 PM10/1/12
to gremli...@googlegroups.com
It surely helps :).
Also, is there a way to record a "full log" (commands + output)?

Thanks,
Viktoras.

--



Marko Rodriguez

unread,
Oct 1, 2012, 12:46:15 PM10/1/12
to gremli...@googlegroups.com
Hi,

> Also, is there a way to record a "full log" (commands + output)?

Nope.

Marko.

Pierre De Wilde

unread,
Oct 2, 2012, 10:10:18 AM10/2/12
to gremli...@googlegroups.com
Hi Viktoras,

Yes, you can record a Gremlin/Groovy session using the following command:

record start <filename>
... any Gremlin commands ...
record stop

<filename> will contain both commands and output.

HTH,
Pierre

Viktoras Veitas

unread,
Oct 10, 2012, 12:51:29 PM10/10/12
to gremli...@googlegroups.com
Perfect, just checked.

Thanks a lot,
Viktoras.
Reply all
Reply to author
Forward
0 new messages