[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Perl, Bash and C++
From:       Greg Turpin <gregturp () home ! com>
Date:       2001-07-07 4:36:10
[Download RAW message or body]

On Saturday 07 July 2001  1:04 am, Michael Weichert wrote:
> Does the same apply to Perl, Python, etc..? If so, great! This would be
> exactly what I'm looking for!
>

Yes.

Except - for Python use:
#!/usr/bin/env python

That can be used for perl as well.  This method is generally considered
more portable.


> Thanks,
> Michael Weichert
>
>
> ----- Original Message -----
> From: Corey Schuhen <cschuhen@ozemail.com.au>
> To: <kde-devel@kde.org>
> Sent: Thursday, July 05, 2001 8:58 PM
> Subject: Re: Perl, Bash and C++
>
> > You dont have to make a script into a binary file to make it runable
>
> without
>
> > calling sh explicitly.
> >
> > Make sure the top line of the script has #!/bin/sh
> > Make it executable by chmod a+x ./joe.sj
> > Rename it to whatever you like
> > Put it in a directory that is in users paths e.g. /usr/local/bin or
>
> /usr/bin
>
> > On Fri, 6 Jul 2001 16:23, Michael Weichert wrote:
> > > Is it possible to link a command like :
> > >
> > > ln -s sh ./root/joe.sh /usr/bin/joey
> > >
> > > What I'm trying to accomplish is I'm developing a new product for a
> > > distribution, don't want to say just yet *hehe* because if I can get
> > > everything to work it should go over well. Anyways, I don't want users
>
> to
>
> > > have to type sh ./joe.sh in order to run a program, I just want them to
>
> be
>
> > > able to type in the command like any other program. I could just write
>
> the
>
> > > program in c++ but I think that C++ is not the language for an easy job
> > > that I want to accomplish, and also I want to learn more about
> > > scripting languages and I figure that this is a good way to learn. I
> > > would try it myself but Linux isn't installed on my system currently.
> > > ----- Original Message -----
> > > From: Larry Wright <larry.tami@gte.net>
> > > To: <kde-devel@kde.org>
> > > Sent: Thursday, July 05, 2001 8:12 PM
> > > Subject: Re: Perl, Bash and C++
> > >
> > > > On Friday 06 July 2001 12:39 am, Michael Weichert wrote:
> > > > > I can use Python then. So, how would I compile Python to a single
> > > > > binary file, such as:
> > > >
> > > >  Sorry, this won't work either. Anything known as a "Scripting
>
> language"
>
> > > > generally cannot be compiled to a binary file. What is it you are
>
> trying
>
> > > to
> > >
> > > > accomplish?
> > > >
> > > > >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
> > >
> > > unsubscribe <<
> > >
> > > >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
> > > >> unsubscribe <<
> > >>
> > >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
>
> unsubscribe <<
>
> >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic