1
This is my problem: I have a shell script, where I use gitk --all .
for a graphical representation of a git repository. I would like this script to run unattended, and instead of starting gitk in GUI mode where it waits for the user to close it down, I'd like to somehow:
- Start the
gitk
window - When it has instantiated its GUI/window, take automatic screenshot of its window
- Once the screenshot has been captured, close
gitk
I would imagine, instead of calling
gitk --all .
... in my bash
script, I would otherwise call something like this pseudocode:
my_scrshot_cmd --command "gitk --all ." --file myrandomfilename.png
Is this possible to do on Linux - and if so, how can I do it?
Many thanks for that, @Hastur - I indeed have Imagemagick, so this will do the trick for me; accepted for now... Cheers! – sdaau – 2015-10-05T11:19:22.377