What commands will allow me to programatically enquirer how of a gnome terminal: how many tabs it has, and what are their pwd’s

When I have a gnome terminal open, is there a command that will allow me to programatically enquirer of this gnome terminal:

(1) How many tabs the gnome terminal has open on it?

(2) What is the pwd of each of these tabs?

I loose my virtual machine in the evening, so I want to write a script to store the above information, and then programatically reopen all the gnome terminals the next day, upon log in.

Go to Source
Author: Rory Cornish