Re: [OT] inline python (was Re: [ in /usr/bin Question)

2007-05-10 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/10/07 12:27, Ken Irving wrote: > On Thu, May 10, 2007 at 05:52:03PM +0100, william pursell wrote: >> Bob McGowan wrote: >>> So, a question: Can python 'run' code directly from the command line, >>> as Perl does with the -e option? >> Yes: >> >>

Re: [ in /usr/bin Question

2007-05-10 Thread Bob McGowan
Douglas Allan Tutty wrote: On Wed, May 09, 2007 at 05:08:33PM -0700, Bob McGowan wrote: Douglas Allan Tutty wrote: No wonder I can never figure out what a shell script is trying to do, either way it looks like a cat on a keyboard. Give me python and fortran77 any day. As I don't use python, I

Re: [OT] inline python (was Re: [ in /usr/bin Question)

2007-05-10 Thread Ken Irving
On Thu, May 10, 2007 at 05:52:03PM +0100, william pursell wrote: > Bob McGowan wrote: > >So, a question: Can python 'run' code directly from the command line, > >as Perl does with the -e option? > Yes: > > python -c 'print "!dlrow olleH"[::-1]' Nice example of how python, besides being capable

[OT] inline python (was Re: [ in /usr/bin Question)

2007-05-10 Thread william pursell
Bob McGowan wrote: So, a question: Can python 'run' code directly from the command line, as Perl does with the -e option? Yes: python -c 'print "!dlrow olleH"[::-1]' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: [ in /usr/bin Question

2007-05-09 Thread Daniel Burrows
On Wed, May 09, 2007 at 03:12:20PM +0200, Joe Hart <[EMAIL PROTECTED]> was heard to say: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Tom Grove wrote: > > Hello all...I am new to this Debian thing :-) I used it in the Woody > > days but moved over to the FreeBSD world for the last few y

Re: [ in /usr/bin Question

2007-05-09 Thread Douglas Allan Tutty
On Wed, May 09, 2007 at 08:48:14PM -0500, Ron Johnson wrote: > On 05/09/07 20:33, Douglas Allan Tutty wrote: > [snip] > > once for as many instances as you like. If I were wanting to create my > > own NIX distribution, I'd have sh available for compatibility, but all > > system scripts would be do

Re: [ in /usr/bin Question

2007-05-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/09/07 20:33, Douglas Allan Tutty wrote: [snip] > once for as many instances as you like. If I were wanting to create my > own NIX distribution, I'd have sh available for compatibility, but all > system scripts would be done in python. Red Hat.

Re: [ in /usr/bin Question

2007-05-09 Thread Douglas Allan Tutty
On Wed, May 09, 2007 at 05:08:33PM -0700, Bob McGowan wrote: > Douglas Allan Tutty wrote: > >No wonder I can never figure out what a shell script is trying to do, > >either way it looks like a cat on a keyboard. Give me python and > >fortran77 any day. > > > > As I don't use python, I have no dir

Re: [ in /usr/bin Question

2007-05-09 Thread Roberto C . Sánchez
On Wed, May 09, 2007 at 07:50:13PM -0500, Ron Johnson wrote: > > Or a pseudofile. Here's a simple example: > python << EOF > import time > print time.time() > EOF > Don't forget the interactive python shell. Regards, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://w

Re: [ in /usr/bin Question

2007-05-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/09/07 19:08, Bob McGowan wrote: > Douglas Allan Tutty wrote: >> On Wed, May 09, 2007 at 09:00:58AM -0700, Bob McGowan wrote: >>> bdeferme wrote: Tom Grove <[EMAIL PROTECTED]> wrote: > Hello all...I am new to this Debian thing :-) I

Re: [ in /usr/bin Question

2007-05-09 Thread Bob McGowan
Douglas Allan Tutty wrote: On Wed, May 09, 2007 at 09:00:58AM -0700, Bob McGowan wrote: bdeferme wrote: Tom Grove <[EMAIL PROTECTED]> wrote: Hello all...I am new to this Debian thing :-) I used it in the Woody days but moved over to the FreeBSD world for the last few years. I recently insta

Re: [ in /usr/bin Question

2007-05-09 Thread Douglas Allan Tutty
On Wed, May 09, 2007 at 09:00:58AM -0700, Bob McGowan wrote: > bdeferme wrote: > >Tom Grove <[EMAIL PROTECTED]> wrote: > > > >>Hello all...I am new to this Debian thing :-) I used it in the Woody > >>days but moved over to the FreeBSD world for the last few years. I > >>recently installed Testing

Re: [ in /usr/bin Question

2007-05-09 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob McGowan wrote: > bdeferme wrote: >> Tom Grove <[EMAIL PROTECTED]> wrote: >> >>> Hello all...I am new to this Debian thing :-) I used it in the Woody >>> days but moved over to the FreeBSD world for the last few years. I >>> recently installed Tes

Re: [ in /usr/bin Question

2007-05-09 Thread Karl E. Jorgensen
On Wed, May 09, 2007 at 12:25:14PM -0400, Greg Folkert wrote: > On Wed, 2007-05-09 at 18:01 +0200, Mathias Brodala wrote: > > Hi Greg. > > > > Greg Folkert, 09.05.2007 17:37: > > > On Wed, 2007-05-09 at 21:07 +0800, Wang Xu wrote: > > >> On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: >

Re: [ in /usr/bin Question

2007-05-09 Thread Greg Folkert
On Wed, 2007-05-09 at 18:01 +0200, Mathias Brodala wrote: > Hi Greg. > > Greg Folkert, 09.05.2007 17:37: > > On Wed, 2007-05-09 at 21:07 +0800, Wang Xu wrote: > >> On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: > >>> Hello all...I am new to this Debian thing :-) I used it in the Woody

Re: [ in /usr/bin Question

2007-05-09 Thread Bob McGowan
bdeferme wrote: Tom Grove <[EMAIL PROTECTED]> wrote: Hello all...I am new to this Debian thing :-) I used it in the Woody days but moved over to the FreeBSD world for the last few years. I recently installed Testing (Lenny) and see the left bracket in my /usr/bin directory and do not know wha

Re: [ in /usr/bin Question

2007-05-09 Thread Mathias Brodala
Hi Greg. Greg Folkert, 09.05.2007 17:37: > On Wed, 2007-05-09 at 21:07 +0800, Wang Xu wrote: >> On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: >>> Hello all...I am new to this Debian thing :-) I used it in the Woody >>> days but moved over to the FreeBSD world for the last few years.

Re: [ in /usr/bin Question

2007-05-09 Thread Karl E. Jorgensen
On Wed, May 09, 2007 at 11:37:28AM -0400, Greg Folkert wrote: > On Wed, 2007-05-09 at 21:07 +0800, Wang Xu wrote: > > On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: > > > Hello all...I am new to this Debian thing :-) I used it in the Woody > > > days but moved over to the FreeBSD worl

Re: [ in /usr/bin Question

2007-05-09 Thread Greg Folkert
On Wed, 2007-05-09 at 21:07 +0800, Wang Xu wrote: > On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: > > Hello all...I am new to this Debian thing :-) I used it in the Woody > > days but moved over to the FreeBSD world for the last few years. I > > recently installed Testing (Lenny) a

Re: [ in /usr/bin Question

2007-05-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/09/07 08:12, Joe Hart wrote: > Tom Grove wrote: >> Hello all...I am new to this Debian thing :-) I used it in the Woody >> days but moved over to the FreeBSD world for the last few years. I >> recently installed Testing (Lenny) and see the left

Re: [ in /usr/bin Question

2007-05-09 Thread bdeferme
Joe Hart <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Grove wrote: Hello all...I am new to this Debian thing :-) I used it in the Woody days but moved over to the FreeBSD world for the last few years. I recently installed Testing (Lenny) and see the left brack

Re: [ in /usr/bin Question

2007-05-09 Thread bdeferme
Tom Grove <[EMAIL PROTECTED]> wrote: Hello all...I am new to this Debian thing :-) I used it in the Woody days but moved over to the FreeBSD world for the last few years. I recently installed Testing (Lenny) and see the left bracket in my /usr/bin directory and do not know what it is. When I

Re: [ in /usr/bin Question

2007-05-09 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Grove wrote: > Hello all...I am new to this Debian thing :-) I used it in the Woody > days but moved over to the FreeBSD world for the last few years. I > recently installed Testing (Lenny) and see the left bracket in my > /usr/bin directory and

Re: [ in /usr/bin Question

2007-05-09 Thread Wang Xu
On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote: > Hello all...I am new to this Debian thing :-) I used it in the Woody > days but moved over to the FreeBSD world for the last few years. I > recently installed Testing (Lenny) and see the left bracket in my > /usr/bin directory and do

[ in /usr/bin Question

2007-05-09 Thread Tom Grove
Hello all...I am new to this Debian thing :-) I used it in the Woody days but moved over to the FreeBSD world for the last few years. I recently installed Testing (Lenny) and see the left bracket in my /usr/bin directory and do not know what it is. When I ls -al it I get: -rwxr-xr-x 1 root