in reply to Perl/Tk Unix Question

Have a look at Tk::ExecuteCommand