Kent Johnson wrote:
> On Fri, May 15, 2009 at 12:46 AM, R K wrote:
>> Gurus,
>>
>> I'm trying to write a fairly simple script that finds the number of hours /
>> minutes / seconds between now and the next Friday at 1:30AM.
>>
>> I have a few little chunks of code but I can't seem to get everything
MK wrote:
Hi there,
i am using this code to send an "cat > ThisIsMyUrl" with popen.
Of cos cat now waits for the CTRL+D command.
How can i send this command ?
Wouldn't it be better if you directly opened the "ThisIsMyUrl" file and
wrote the text into it rather than rely on shelling out for t
On Fri, May 15, 2009 at 08:51:26AM -0700, Steve Willoughby wrote:
> On Fri, May 15, 2009 at 04:18:16PM +0100, Alan Gauld wrote:
> > echo ^D | cat > foo
> >
> > sends a CtrlD to cat which writes an empty file to foo.
>
> And since this seems to be a point of confusion for you,
And that was actual
On Fri, May 15, 2009 at 04:18:16PM +0100, Alan Gauld wrote:
> echo ^D | cat > foo
>
> sends a CtrlD to cat which writes an empty file to foo.
And since this seems to be a point of confusion for you,
keep in mind that the ^D character itself is not a "command"
or even seen by the cat program at al
"MK" wrote
Seems that i did it the wrong way still from the beginning.
I did it now with open and write an empty file.
But anyway i would wish to know if it is possible to terminate
a running cat.
It depends on what you mean by a running cat.
cat simply concatenates (ie joins) its input t
MK wrote:
Ok. I explain it once more. Its not about reading the console output of
the command. Its that i want to put a empty file in my subdirectories
so that the name of the file is a message or url or something else.
And if you want an empty file you can do that with
"cat > IAmAnEmptyFileWith
R K wrote:
Gurus,
I'm trying to write a fairly simple script that finds the number of hours /
minutes / seconds between now and the next Friday at 1:30AM.
I have a few little chunks of code but I can't seem to get everything to piece
together nicely.
import datetime,time
now = datetime.dat
MK wrote:
Ok. I explain it once more. Its not about reading the console output of
the command. Its that i want to put a empty file in my subdirectories
so that the name of the file is a message or url or something else.
And if you want an empty file you can do that with
"cat > IAmAnEmptyFileWith
2009/5/15 MK :
> Ok. I explain it once more. Its not about reading the console output of
> the command. Its that i want to put a empty file in my subdirectories
> so that the name of the file is a message or url or something else.
> And if you want an empty file you can do that with
> "cat > IAmAnE
On Fri, May 15, 2009 at 12:46 AM, R K wrote:
> Gurus,
>
> I'm trying to write a fairly simple script that finds the number of hours /
> minutes / seconds between now and the next Friday at 1:30AM.
>
> I have a few little chunks of code but I can't seem to get everything to
> piece together nicely.
Seems that i did it the wrong way still from the beginning.
I did it now with open and write an empty file.
But anyway i would wish to know if it is possible to terminate
a running cat.
Thank you all.
___
Tutor maillist - Tutor@python.org
http://m
Ok. I explain it once more. Its not about reading the console output of
the command. Its that i want to put a empty file in my subdirectories
so that the name of the file is a message or url or something else.
And if you want an empty file you can do that with
"cat > IAmAnEmptyFileWithOnlyAName"
u
On Fri, May 15, 2009 at 6:46 AM, R K wrote:
> Gurus,
>
> I'm trying to write a fairly simple script that finds the number of hours /
> minutes / seconds between now and the next Friday at 1:30AM.
>
> I have a few little chunks of code but I can't seem to get everything to
> piece together nicely.
13 matches
Mail list logo