Say I need to write a script that will launch a terminal and execute a command and I need that to work on various systems. How can I do that in a safe and portable manner?
Is xterm
always installed? I assume that any *nix with a GUI must have some terminal emulator. How can I get to it? Debian systems have x-terminal-emulator
but that, apparently, does not even work in Red Hat, let alone non-Linux *nixes.
expect
– Red Cricket Sep 20 '13 at 16:28expect
? How? By asking the user to type in their terminal? – terdon Sep 20 '13 at 16:32