Shell...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
Shell...

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

I have a Motif executable that from time to time I use to call shell commands from. Is there a way to call a shell command from a Motif shell window and then respond to it when needed?
For example...
I attempt to delete a file and it asks if I really want to do that. It would be nice to shell the command from the Motif shell window and then if this type of question occurs respond to it as needed from the Motif shell window / GUI as needed.
C. Lamb
‹ XmTextField ... not supported in font. I can't set the shell with ›

jeffl

Wed, 10/06/2004 - 20:40#1

Shell...

I think you're mixing "shells" here. In Motif, a shell widget is basically a toplevel window, ie something that floats around and is (generally) decorated by the window manager. It really has nothing to do with a command line shell, ie bash.

What you're describing is the ability to interact with the OS via Motif. You can certainly write code to do this, but its not really something that's generally applicable to this GUI toolkit; and don't even get started on the security implications! :)

Cheers,

- Jeff

clamb

Thu, 10/07/2004 - 02:44#2

Probably wrong term / use of words...

Sorry about that you are correct when you say the toplevel Widget is refered to as the shell.

However...
I just thought that I remembered seeing an example (small one) in the programming pdf for Motif that contained a Widget that was being used to relay back command line data. I was just wondering if there was a widget that could be used to not onlly relay back command line activity, but interact as well.

Thanks.
Craig