Re: print shell output in a file
- From: "Juergen Huber" <juergen.huber@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 16:53:05 +0200
hello,
if i would type in your code, i became the following output in the
"output.txt" - file
BOOL | 4 | 50463 |201852
but why?!
he wouldn´t do that for all the entrys in the csv file! but only for the
first one in the file!
Stephan Wassipaul wrote:
f = file('output.txt','w')sse
print >>f, '%-30s | %-12d | %-12d |%-12d ' % (typename,
size / count,
count,
size)
f.close()
hello,
one more question i will have!
now i have written a little programm, which delivers me an output on
the shell!
here is the print command, which delivers me the following output
(see below) on the shell:
print '%-30s | %-12d | %-12d |%-12d ' % (typename,
size / count,
count,
size)
--------------NAME-------------|Groesse(Byte)-|----Anzahl----|-Gesamtgroe
---(Byte)-|
-------------------------------------------------------------------------
----------
ADD_REAL_N6 | 4 | 1 |4
AND_BOOL_N10 | 4 | 1 |4
AND_BOOL_N12 | 4 | 1 |4
Is there a way to put this output in an file?!?! i searched about 2h
for this, but i couldn`t find an answer!
thnks, juergen
.
- References:
- print shell output in a file
- From: Juergen Huber
- Re: print shell output in a file
- From: Stephan Wassipaul
- print shell output in a file
- Prev by Date: Re: No error while sending via TCP Socket
- Next by Date: Re: Chapter 9 Tutorial for Classes Not Working
- Previous by thread: Re: print shell output in a file
- Next by thread: Re: print shell output in a file
- Index(es):
Relevant Pages
|