Re: Creating a file with $SIZE

2008-03-16 Thread Gabriel Genellina
En Wed, 12 Mar 2008 09:37:58 -0200, k.i.n.g. <[EMAIL PROTECTED]> escribi�: > We use dd command in Linux to create a file with of required size. In > similar way, on windows I would like to use python to take the size of > the file( 50MB, 1GB ) as input from user and create a uncompressed > file

Re: Creating a file with $SIZE

2008-03-15 Thread rbossy
Quoting Bryan Olson <[EMAIL PROTECTED]>: > Robert Bossy wrote: > > Bryan Olson wrote: > >> Robert Bossy wrote: > Robert Bossy wrote: > > Indeed! Maybe the best choice for chunksize would be the file's buffer > > size... > >> > >> That bit strikes me as silly. > >> > > The size of the

Re: Creating a file with $SIZE

2008-03-14 Thread Bryan Olson
Robert Bossy wrote: > Bryan Olson wrote: >> Robert Bossy wrote: Robert Bossy wrote: > Indeed! Maybe the best choice for chunksize would be the file's buffer > size... >> >> That bit strikes me as silly. >> > The size of the chunk must be as little as possible in or

Re: Creating a file with $SIZE

2008-03-14 Thread Robert Bossy
Bryan Olson wrote: > Robert Bossy wrote: > >> [EMAIL PROTECTED] wrote: >> >>> Robert Bossy wrote: >>> Indeed! Maybe the best choice for chunksize would be the file's buffer size... > > That bit strikes me as silly. > The size of the chunk must be as litt

Re: Creating a file with $SIZE

2008-03-14 Thread Bryan Olson
Robert Bossy wrote: > [EMAIL PROTECTED] wrote: >> Robert Bossy wrote: >>> Indeed! Maybe the best choice for chunksize would be the file's buffer >>> size... That bit strikes me as silly. >>> I won't search the doc how to get the file's buffer size because >>> I'm too cool to use that function

Re: Creating a file with $SIZE

2008-03-13 Thread Bryan Olson
k.i.n.g. wrote: > I think I am not clear with my question, I am sorry. Here goes the > exact requirement. > > We use dd command in Linux to create a file with of required size. In > similar way, on windows I would like to use python to take the size of > the file( 50MB, 1GB ) as input from user an

Re: Creating a file with $SIZE

2008-03-13 Thread Robert Bossy
[EMAIL PROTECTED] wrote: > On Mar 12, 2:44 pm, Robert Bossy <[EMAIL PROTECTED]> wrote: > >> Matt Nordhoff wrote: >> >>> Robert Bossy wrote: >>> k.i.n.g. wrote: > I think I am not clear with my question, I am sorry. Here goes the > exact requirement. >

Re: Creating a file with $SIZE

2008-03-12 Thread k.i.n.g.
On Mar 13, 8:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Mar 12, 7:37 am, "k.i.n.g." <[EMAIL PROTECTED]> wrote:> We use dd command > in Linux to create a file with of required size. > > If you just want to get your work done, you might consider the cygwin > dd command. > Learning t

Re: Creating a file with $SIZE

2008-03-12 Thread [EMAIL PROTECTED]
On Mar 12, 7:37 am, "k.i.n.g." <[EMAIL PROTECTED]> wrote: > We use dd command in Linux to create a file with of required size. If you just want to get your work done, you might consider the cygwin dd command. Learning to write python is a worthwhile endeavour in any case. -- http://mail.python.or

Re: Creating a file with $SIZE

2008-03-12 Thread Marco Mariani
Robert Bossy wrote: > Indeed! Maybe the best choice for chunksize would be the file's buffer > size... I won't search the doc how to get the file's buffer size because > I'm too cool to use that function and prefer the seek() option since > it's lighning fast regardless the size of the file and

Re: Creating a file with $SIZE

2008-03-12 Thread cokofreedom
On Mar 12, 2:44 pm, Robert Bossy <[EMAIL PROTECTED]> wrote: > Matt Nordhoff wrote: > > Robert Bossy wrote: > > >> k.i.n.g. wrote: > > >>> I think I am not clear with my question, I am sorry. Here goes the > >>> exact requirement. > > >>> We use dd command in Linux to create a file with of required

Re: Creating a file with $SIZE

2008-03-12 Thread Robert Bossy
Matt Nordhoff wrote: > Robert Bossy wrote: > >> k.i.n.g. wrote: >> >>> I think I am not clear with my question, I am sorry. Here goes the >>> exact requirement. >>> >>> We use dd command in Linux to create a file with of required size. In >>> similar way, on windows I would like to use pyth

Re: Creating a file with $SIZE

2008-03-12 Thread Matt Nordhoff
Robert Bossy wrote: > k.i.n.g. wrote: >> I think I am not clear with my question, I am sorry. Here goes the >> exact requirement. >> >> We use dd command in Linux to create a file with of required size. In >> similar way, on windows I would like to use python to take the size of >> the file( 50MB,

Re: Creating a file with $SIZE

2008-03-12 Thread Robert Bossy
k.i.n.g. wrote: > I think I am not clear with my question, I am sorry. Here goes the > exact requirement. > > We use dd command in Linux to create a file with of required size. In > similar way, on windows I would like to use python to take the size of > the file( 50MB, 1GB ) as input from user and

Re: Creating a file with $SIZE

2008-03-12 Thread k.i.n.g.
I think I am not clear with my question, I am sorry. Here goes the exact requirement. We use dd command in Linux to create a file with of required size. In similar way, on windows I would like to use python to take the size of the file( 50MB, 1GB ) as input from user and create a uncompressed fil

Re: Creating a file with $SIZE

2008-03-12 Thread Chris
On Mar 12, 12:52 pm, Chris <[EMAIL PROTECTED]> wrote: > On Mar 12, 12:32 pm, "k.i.n.g." <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I would like create files of different size, taking size as user > > input. I need to check the data transfer rates from one network to > > another . In order to do

Re: Creating a file with $SIZE

2008-03-12 Thread Chris
On Mar 12, 12:32 pm, "k.i.n.g." <[EMAIL PROTECTED]> wrote: > Hi All, > > I would like create files of different size, taking size as user > input. I need to check the data transfer rates from one network to > another . In order to do this I will have to create files of diff size > and work out. I a

Creating a file with $SIZE

2008-03-12 Thread k.i.n.g.
Hi All, I would like create files of different size, taking size as user input. I need to check the data transfer rates from one network to another . In order to do this I will have to create files of diff size and work out. I am new to Python Thanks in advance. KK -- http://mail.python.org/mai