From hattons@cpkwebser5.ncr.disa.mil Sat Jun 27 16:12:09 1998
From: hattons@cpkwebser5.ncr.disa.mil
To: users@lists.opensuse.org
Subject: [S.u.S.E. Linux] Getting started with X programming
Date: Sat, 27 Jun 1998 12:12:09 -0400
Message-ID: <359519D9.3BA0B254@cpkwebser5.ncr.disa.mil>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1530247081886349291=="
--===============1530247081886349291==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
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
--
[http:=
//counter.li.org>] 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
--===============1530247081886349291==--
From hongfeng@public.wh.hb.cn Sat Jun 27 22:57:01 1998
From: hongfeng@public.wh.hb.cn
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Getting started with X programming
Date: Sun, 28 Jun 1998 06:57:01 +0800
Message-ID: <359578BD.F899B2FA@public.wh.hb.cn>
In-Reply-To: <359519D9.3BA0B254@cpkwebser5.ncr.disa.mil>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5302855850823247303=="
--===============5302855850823247303==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
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 http://www.oreilly.com>
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
> --
>
> [htt=
p://counter.li.org>] 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
--===============5302855850823247303==--
From satan3@home.com Sat Jun 27 23:07:48 1998
From: satan3@home.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Getting started with X programming
Date: Sat, 27 Jun 1998 18:07:48 -0500
Message-ID: <35957B44.F36C4038@home.com>
In-Reply-To: <359578BD.F899B2FA@public.wh.hb.cn>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3794840937667627922=="
--===============3794840937667627922==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
There are two good reasons to study gtk instead. =20
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:
>=20
> there are many good books guide to program with X/Motif.
>=20
> for fast develop GUI, Tcl/Tk is an excellent choice, pls read the book
> from O'Reilly: "Tcl/Tk Tools" written by Mark Harrison;
>=20
> for tricks and style on programming with Motif, pls read the book
> from O'Reilly: "Motif Tools" written by David Flanagan.
>=20
> There 2 books can give you all the tips you need now. Pls
> look them at http://www.oreilly.com>
>=20
> Rgds,
> Frederic
>=20
> Steven T. Hatton ??????
>=20
> > 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
--===============3794840937667627922==--
From tanc@cuug.ab.ca Sun Jun 28 02:12:55 1998
From: tanc@cuug.ab.ca
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Getting started with X programming
Date: Sat, 27 Jun 1998 20:12:55 -0600
Message-ID:
In-Reply-To: <35957B44.F36C4038@home.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1745150938108969180=="
--===============1745150938108969180==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
On Sat, 27 Jun 1998, Michael Lankton wrote:
>=20
> There are two good reasons to study gtk instead. =20
> 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? =20
> 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.
>=20
> 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
>=20
> hongfeng wrote:
> >=20
> > there are many good books guide to program with X/Motif.
> >=20
> > for fast develop GUI, Tcl/Tk is an excellent choice, pls read the book
> > from O'Reilly: "Tcl/Tk Tools" written by Mark Harrison;
> >=20
> > for tricks and style on programming with Motif, pls read the book
> > from O'Reilly: "Motif Tools" written by David Flanagan.
> >=20
> > There 2 books can give you all the tips you need now. Pls
> > look them at http://www.oreilly.com>
> >=20
> > Rgds,
> > Frederic
> >=20
> > Steven T. Hatton ??????
> >=20
> > > 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
>=20
------------------------------------------------------------------------------
C. J. Tan
E-mail: cjtan@acm.org Telephone: 1-403-220-8038=20
tanc@cuug.ab.ca 1-403-606-4257=20
URL: http://www.cuug.ab.ca/~tanc> Facsimile: 1-403-284-19=
80
"An engineer made programmer is one=20
who attempts to solve a problem,
A programmer made engineer is one=20
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
--===============1745150938108969180==--
From beamanj@novaquest.com Sun Jun 28 20:17:02 1998
From: beamanj@novaquest.com
To: users@lists.opensuse.org
Subject: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 13:17:02 -0700
Message-ID: <000001bda2d1$b60f6a10$0100a8c0@starfleet.pacbell.net>
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5122114723580754848=="
--===============5122114723580754848==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
--===============5122114723580754848==--
From satan3@home.com Sun Jun 28 20:23:22 1998
From: satan3@home.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 15:23:22 -0500
Message-ID: <3596A63A.BD135116@home.com>
In-Reply-To: <000001bda2d1$b60f6a10$0100a8c0@starfleet.pacbell.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4778749603544038895=="
--===============4778749603544038895==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
--===============4778749603544038895==--
From arunkhan@xnet.com Sun Jun 28 21:51:58 1998
From: arunkhan@xnet.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 16:51:58 -0500
Message-ID: <199806282151.QAA17179@xnet.com>
In-Reply-To: <3596A63A.BD135116@home.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6980575370635280528=="
--===============6980575370635280528==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
>=20
>=20
> 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
>=20
> Joseph Beaman wrote:
> >=20
> > OK, this may seem like a dumb question, but please bear with me as I am n=
ew
> > 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 w=
ith
> > 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 f=
ile
> > only that I have trouble with either--many are like this. What am I doing
> > wrong?
>=20
-
To get out of this list, please send email to majordomo@suse.com with
this text in its body: unsubscribe suse-linux-e
--===============6980575370635280528==--
From satan3@home.com Sun Jun 28 22:01:31 1998
From: satan3@home.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 17:01:31 -0500
Message-ID: <3596BD3B.AE302729@home.com>
In-Reply-To: <199806282151.QAA17179@xnet.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8269921675392616281=="
--===============8269921675392616281==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
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
--===============8269921675392616281==--
From beamanj@novaquest.com Mon Jun 29 02:17:00 1998
From: beamanj@novaquest.com
To: users@lists.opensuse.org
Subject: RE: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 19:17:00 -0700
Message-ID: <000101bda303$ffb84e20$0100a8c0@starfleet.pacbell.net>
In-Reply-To: <3596A63A.BD135116@home.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3833128303484989729=="
--===============3833128303484989729==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
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 [mailto:owner-suse-linux-e@suse.com]On
> 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
> 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
>
-
To get out of this list, please send email to majordomo@suse.com with
this text in its body: unsubscribe suse-linux-e
--===============3833128303484989729==--
From satan3@home.com Mon Jun 29 02:31:17 1998
From: satan3@home.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 21:31:17 -0500
Message-ID: <3596FC75.7FDA3A8B@home.com>
In-Reply-To: <000101bda303$ffb84e20$0100a8c0@starfleet.pacbell.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2361883517394562161=="
--===============2361883517394562161==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
--===============2361883517394562161==--
From satan3@home.com Mon Jun 29 02:35:57 1998
From: satan3@home.com
To: users@lists.opensuse.org
Subject: Re: [S.u.S.E. Linux] Executing executables under Linux
Date: Sun, 28 Jun 1998 21:35:57 -0500
Message-ID: <3596FD8D.4E7F417B@home.com>
In-Reply-To: <3596FC75.7FDA3A8B@home.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4510965433992205904=="
--===============4510965433992205904==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
--===============4510965433992205904==--
From mantel@suse.de Mon Jun 29 10:54:19 1998
From: mantel@suse.de
To: users@lists.opensuse.org
Subject: [S.u.S.E. Linux] Re: Executing executables under Linux
Date: Mon, 29 Jun 1998 12:54:19 +0200
Message-ID:
In-Reply-To: <000101bda303$ffb84e20$0100a8c0@starfleet.pacbell.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2806391084333644251=="
--===============2806391084333644251==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
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
--===============2806391084333644251==--