Hi,
I trying to create a bootstrap.sh shell script that takes two command line args
that passes them
to two scripts. one script is init.sh that sets up some environment varilables
the other will be a Python script used as the main build script. the contents
of the bootstrap file and init.sh a
Darren,
Thanks
From: [EMAIL PROTECTED] on behalf of darren kirby
Sent: Fri 9/7/2007 1:58 PM
To: python-list@python.org
Subject: Re: passing command line arguments
quoth the Brian McCann:
> Hi,
>
> when I run the script show_args2.py
>
> # ./
Hi,
when I run the script show_args2.py
# ./show_args2.py 1 2 3
I get the following error
Traceback (most recent call last):
File "./show_args2.py", line 4, in ?
print 'The arguments of %s are "%s"' %s \
NameError: name 's' is not defined
#
<mailto:[EMAIL PROTECTED]>
Hi Ricardo,
what do the + signs do?
From: Ricardo Aráoz [mailto:[EMAIL PROTECTED]
Sent: Wed 8/29/2007 2:51 PM
To: Brian McCann
Cc: python-list@python.org
Subject: Re: copying files
Brian McCann wrote:
> Hi,
>
>
<mailto:[EMAIL PROTECTED]>
one thing I just noticed is that when I run the script I get a new symbolic link
created in my current dir TEST_HOME-->lib
--Brian
From: [EMAIL PROTECTED] on behalf of Brian McCann
Sent: Wed 8/29/2007 2:40 PM
To: py
Hi,
with the code below I set a variable TEST_HOME to a path and the variable m to
a path
in my current dir.
I have a symbolic link setting m>lib
when I run the script I get no errors and the lib dir with its 20 files does
not get copied to /v01/test_home
any help would be greatly apprecia
Ed, Carsten, Steve,
I don't care if Steve Holden is the python God himself,
He's a rude, arrogant, vulgar human who shows his true level
of intellect by his use of profanity
And he goes one level lower, stating he respects the python group
he spews his profanity to.
He chose to respond to my
I don't care if Steve Holden is the python God himself,
He's a rude, arrogant, vulgar human who shows his true level
of intellect by his use of profanity
And he goes one level lower stating he respects the python group
he spews his profanity to
He chose to respond to my question, no one dragged
Hi,
I'm trying to tar the contents of a directory "test" which contains
3 files foo1.xml ,foo2.xml, foo3.xml
in my current directory /home/pythonbox/tmp I have the directory "test"
if I run the below script it fails with the below error, but the files exist in
the directory test
any help
from you go to trash.
May your pillow not have pity on your head!
--Brian
From: Steve Holden [mailto:[EMAIL PROTECTED]
Sent: Thu 8/23/2007 11:15 PM
To: Brian McCann
Cc: python-list@python.org
Subject: Re: creating a tar file with python
Brian McCann wrote:
&g
pen(test.xml","sample.tar.gz", 'w:gz')
<mailto:[EMAIL PROTECTED]>
From: [EMAIL PROTECTED] on behalf of Steve Holden
Sent: Thu 8/23/2007 5:24 PM
To: python-list@python.org
Subject: Re: creating a tar file with python
Brian McCann wrote:
> Hi,
>
&
z)
<mailto:[EMAIL PROTECTED]>
From: [EMAIL PROTECTED] on behalf of Steve Holden
Sent: Thu 8/23/2007 5:24 PM
To: python-list@python.org
Subject: Re: creating a tar file with python
Brian McCann wrote:
> Hi,
>
> I'm trying to create a tar fi
Hi,
I'm trying to create a tar file of the contents of the current directory
right now there is only one file "text.xml" in the current dir, I'm using"."
current dir as source
but that gives syntax error
any help would be greatly appreciated
--Brian
#!/usr/bin/python
import string
import
Hi Shawn,
what if I had a file
com.properties with the below line in it
If I needed to capture the value of everything separeted by a ":"
and asign each to a variable would regex be the right method to grab those?
like
a=jdbc
b=oracle
[EMAIL PROTECTED]
d=1521
e:XE
--Brian
com.db.connstr=jdbc
Shawn, Tim ,Jay
many thanks,
It looks like there are many ways this problem can be approached
either by using regex or a tokens
Tim I'm not familiar with your solution, but will learn about that method also
Jay, what do you mean by regex comes with a lot of overhead?
--Brian
_
To: Brian McCann
Cc: python-list@python.org
Subject: Re: reading a line in file
On 20/08/07, Brian McCann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I can read in the whole file build.number which has the following lines
> how do I just capture the value of build.number and as
Hi,
I can read in the whole file build.number which has the following lines
how do I just capture the value of build.number and assign it to a variable
Thanks,
Brian
contents of file build.number:
#Build Number for ANT. Do not edit!
#Mon Aug 20 04:04:51 EDT 2007
build.number=1
buildinfo.py
Hi,
does anyone have a good example of how to read a line in a file?
say you have a file build.log and in the file are values like
buildnum = 1
date = 20070820
I know how to read the contents and write them to a file, but how would one
grab just the date or build number in order to create a
18 matches
Mail list logo