[S.u.S.E. Linux] Getting started with X programming
![](https://seccdn.libravatar.org/avatar/80cd625828a03997a89871cd1745e88e.jpg?s=120&d=mm&r=g)
I am writing a little symbolic logic processor as an intellectual exercise. I would like to create a GUI interface to this. Can anybody tell me what tools and libs I need in order to create X/motif programs? TIA, Steve -- [<A HREF="http://counter.li.org"><A HREF="http://counter.li.org</A">http://counter.li.org</A</A>>] Yo Bill! Doo-bee, doo-bee, doo. THE WORD OF GOD IS THE CREATION WE BEHOLD: And it is in this word, which no human invention can counterfeit or alter, that God speaketh universally to man. - Thomas Paine, _The Age of Reason_ [L]et [the charter] be brought forth placed on the divine law, the word of God; let a crown be placed thereon, by which; the world may know, that so far as we approve of monarchy, that in America the law is king. - Thomas Paine, *Common Sense*, February 14th, 1776 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/7f4d27b3fba60a368849ef4f66d1f47b.jpg?s=120&d=mm&r=g)
there are many good books guide to program with X/Motif. for fast develop GUI, Tcl/Tk is an excellent choice, pls read the book from O'Reilly: "Tcl/Tk Tools" written by Mark Harrison; for tricks and style on programming with Motif, pls read the book from O'Reilly: "Motif Tools" written by David Flanagan. There 2 books can give you all the tips you need now. Pls look them at <A HREF="http://www.oreilly.com"><A HREF="http://www.oreilly.com</A">http://www.oreilly.com</A</A>> Rgds, Frederic Steven T. Hatton ??????
I am writing a little symbolic logic processor as an intellectual exercise. I would like to create a GUI interface to this. Can anybody tell me what tools and libs I need in order to create X/motif programs?
TIA,
Steve --
[<A HREF="http://counter.li.org"><A HREF="http://counter.li.org</A">http://counter.li.org</A</A>>] Yo Bill! Doo-bee, doo-bee, doo.
THE WORD OF GOD IS THE CREATION WE BEHOLD: And it is in this word, which no human invention can counterfeit or alter, that God speaketh universally to man. - Thomas Paine, _The Age of Reason_
[L]et [the charter] be brought forth placed on the divine law, the word of God; let a crown be placed thereon, by which; the world may know, that so far as we approve of monarchy, that in America the law is king. - Thomas Paine, *Common Sense*, February 14th, 1776
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/87911dea956d6f2b3374d3ed54e21f9a.jpg?s=120&d=mm&r=g)
There are two good reasons to study gtk instead. A) Motif is not gpl'ed and thus will eventually go the way of the dinosaurs B) Tcl/Tk is nice, however every time a new version comes out it breaks the existing apps and they have to be recoded. Stupid. Gtk is gpl'ed, rapidly nearing maturity, massively embraced by the linux development community and has the power to be like any interface you want it to be with it's forthcoming theme support. Just my $.02 hongfeng wrote:
there are many good books guide to program with X/Motif.
for fast develop GUI, Tcl/Tk is an excellent choice, pls read the book from O'Reilly: "Tcl/Tk Tools" written by Mark Harrison;
for tricks and style on programming with Motif, pls read the book from O'Reilly: "Motif Tools" written by David Flanagan.
There 2 books can give you all the tips you need now. Pls look them at <A HREF="http://www.oreilly.com"><A HREF="http://www.oreilly.com</A">http://www.oreilly.com</A</A>>
Rgds, Frederic
Steven T. Hatton ??????
I am writing a little symbolic logic processor as an intellectual exercise. I would like to create a GUI interface to this. Can anybody tell me what tools and libs I need in order to create X/motif programs?
TIA,
Steve
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/8314f3b45e953057db13d5e59bd59339.jpg?s=120&d=mm&r=g)
On Sat, 27 Jun 1998, Michael Lankton wrote:
There are two good reasons to study gtk instead. A) Motif is not gpl'ed and thus will eventually go the way of the dinosaurs
I seriously doubt that. Look at who is backing Motif and CDE. Also, take a look at the number of machines on which Motif is available today. Another reason is companies developing application software would use Motif because they know it is supported by a known group of people -- the company that supplied the package, which on most other UNIX machines would also be the hardware supplier. They have someone to blame when something fails. Also, since they are developing applications for a certain customer or a certain group of customers, the customer will know exactly who the application company is blaming too. And chances are they are more understanding of the situation and thus, are more willing to work with the application company to come up with a feasible solution. Comparing the number of companies that are developing applications using commercial packages to those that use GPLed packages, the former are many times more than the latter for exactly the same reason. One very good example industry is the geophysics industry. This is a very computing application intensive field. How many of them are developing using gcc, Mesa or Lesstif or Gtk? I don't like to say this here, but what is the percentage of Linux usage in such an industry?
B) Tcl/Tk is nice, however every time a new version comes out it breaks the existing apps and they have to be recoded. Stupid.
Gtk is gpl'ed, rapidly nearing maturity, massively embraced by the linux development community and has the power to be like any interface you want it to be with it's forthcoming theme support. Just my $.02
hongfeng wrote:
there are many good books guide to program with X/Motif.
for fast develop GUI, Tcl/Tk is an excellent choice, pls read the book from O'Reilly: "Tcl/Tk Tools" written by Mark Harrison;
for tricks and style on programming with Motif, pls read the book from O'Reilly: "Motif Tools" written by David Flanagan.
There 2 books can give you all the tips you need now. Pls look them at <A HREF="http://www.oreilly.com"><A HREF="http://www.oreilly.com</A">http://www.oreilly.com</A</A>>
Rgds, Frederic
Steven T. Hatton ??????
I am writing a little symbolic logic processor as an intellectual exercise. I would like to create a GUI interface to this. Can anybody tell me what tools and libs I need in order to create X/motif programs?
TIA,
Steve
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
------------------------------------------------------------------------------ C. J. Tan E-mail: cjtan@acm.org Telephone: 1-403-220-8038 tanc@cuug.ab.ca 1-403-606-4257 URL: <A HREF="http://www.cuug.ab.ca/~tanc"><A HREF="http://www.cuug.ab.ca/~tanc</A">http://www.cuug.ab.ca/~tanc</A</A>> Facsimile: 1-403-284-1980 "An engineer made programmer is one who attempts to solve a problem, A programmer made engineer is one who knows how to solve a problem." ------------------------------------------------------------------------------ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/8e99efd3df29441455e33064c76e5a86.jpg?s=120&d=mm&r=g)
OK, this may seem like a dumb question, but please bear with me as I am new to Linux. Now, my understanding is that any program, script, etc can be directly executed from the command line provided that ther permissions are set up with the 'x' attribute. Now, I am using SUSE Linux 5.2, and I am trying to execute smb, from the /sbin/init.d directory. It is a script with the x attribute set, and I am logged in as root. I can do a less on it, but when I try to execute it, I get bash:Command not found. It is not this file only that I have trouble with either--many are like this. What am I doing wrong? Thanks in advance, Joe - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/87911dea956d6f2b3374d3ed54e21f9a.jpg?s=120&d=mm&r=g)
cd /sbin/init.d ./smb Joseph Beaman wrote:
OK, this may seem like a dumb question, but please bear with me as I am new to Linux. Now, my understanding is that any program, script, etc can be directly executed from the command line provided that ther permissions are set up with the 'x' attribute. Now, I am using SUSE Linux 5.2, and I am trying to execute smb, from the /sbin/init.d directory. It is a script with the x attribute set, and I am logged in as root. I can do a less on it, but when I try to execute it, I get bash:Command not found. It is not this file only that I have trouble with either--many are like this. What am I doing wrong?
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/0fc3cf100f9597bb0229052d420bc5a9.jpg?s=120&d=mm&r=g)
cd /sbin/init.d ./smb
To start SMB you need: "./smb start" To stop SMB you need: "./smb stop" the same is true for most other scripts in /sbin/init.d
Joseph Beaman wrote:
OK, this may seem like a dumb question, but please bear with me as I am new to Linux. Now, my understanding is that any program, script, etc can be directly executed from the command line provided that ther permissions are set up with the 'x' attribute. Now, I am using SUSE Linux 5.2, and I am trying to execute smb, from the /sbin/init.d directory. It is a script with the x attribute set, and I am logged in as root. I can do a less on it, but when I try to execute it, I get bash:Command not found. It is not this file only that I have trouble with either--many are like this. What am I doing wrong?
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/87911dea956d6f2b3374d3ed54e21f9a.jpg?s=120&d=mm&r=g)
Arun Khan wrote:
cd /sbin/init.d ./smb
To start SMB you need: "./smb start" To stop SMB you need: "./smb stop"
the same is true for most other scripts in /sbin/init.d
when in doubt man <nameofexecutable> or ./nameofexecutable -h - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/8e99efd3df29441455e33064c76e5a86.jpg?s=120&d=mm&r=g)
Thanks--that works beautifully. Now my next question is WHY do you have to do that?
-----Original Message----- From: owner-suse-linux-e@suse.com [<A HREF="mailto:owner-suse-linux-e@suse.com]On">mailto:owner-suse-linux-e@suse.com]On</A> Behalf Of Michael Lankton Sent: Sunday, June 28, 1998 1:23 PM To: suse-linux-e@suse.com Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
cd /sbin/init.d ./smb
Joseph Beaman wrote:
OK, this may seem like a dumb question, but please bear with me
to Linux. Now, my understanding is that any program, script, etc can be directly executed from the command line provided that ther
set up with the 'x' attribute. Now, I am using SUSE Linux 5.2, and I am trying to execute smb, from the /sbin/init.d directory. It is a script with the x attribute set, and I am logged in as root. I can do a less on it, but when I try to execute it, I get bash:Command not found. It is not this file only that I have trouble with either--many are like this. What am I doing wrong?
as I am new permissions are - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/87911dea956d6f2b3374d3ed54e21f9a.jpg?s=120&d=mm&r=g)
Unless you are executing from a directory that is in your path, you need to preceed the name of the bin with "./". You can add directories to you path in /etc/profile. For instance, a kde user might want to append /opt/kde/bin to his path declaration. Unless you have a directory with several bins that you execute frequently that is outside your path, then it makes more sense to symlink the bins you want to execute to directories that are in your path. For instance, you have realplayer in /opt/rvplayer say. Instead of ham-fistedly cp'ing it to a directory in your path, you could "ln -s /opt/rvplayer/rvplayer /usr/X11R6/bin/rvplayer" That way if any other program depends on that app being in /opt/rvplayer it can still find it, and with rvplayer symlinked you can now just type "rvplayer" without the ./ from an rxvt or xterm. Joseph Beaman wrote:
Thanks--that works beautifully. Now my next question is WHY do you have to do that?
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/87911dea956d6f2b3374d3ed54e21f9a.jpg?s=120&d=mm&r=g)
I wrote:
For instance, a kde user might want to append /opt/kde/bin to his path declaration.
Well, actually, a kde user wouldn't have to do that because everything from /opt/kde/bin functions in the kde environment without any additional work on your part. I use WindowMaker as my primary user and Icewm as root, but I use a couple of the kde apps, namely the filemanager and a couple of the games, and they work fine outside of the kde environment provided that /opt/kde/bin is in your path. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/8f4a97fd774fd986502d2413639dcdea.jpg?s=120&d=mm&r=g)
Hi, On Sun, 28 Jun 1998, Joseph Beaman wrote:
Thanks--that works beautifully. Now my next question is WHY do you have to do that?
Security. Imagine some user putting some shell script into /tmp with the name "ls" and the contents "rm -rf /*". When root executes "ls" in /tmp it could erase your whole system. Some people argue that you can add the cwd at the end of the path. But that is still dangerous. Some user could create the above mentioned file with the name "sl" and just wait for root to mis-spell the "ls" command. If you are the only user on that system, you might want to change the behaviour. Simply start YaST and go to "System administration" / "Security settings". Hubert - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (7)
-
arunkhan@xnet.com
-
beamanj@novaquest.com
-
hattons@cpkwebser5.ncr.disa.mil
-
hongfeng@public.wh.hb.cn
-
mantel@suse.de
-
satan3@home.com
-
tanc@cuug.ab.ca