473,322 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to handle command line output(not terminal handle)

such as :
c:\>python test.py
##Interval 1 seconds the "name" change next
friend : name

don't have to run clear,the "name" dynamic change content
and "friend" is stable
Jul 18 '05 #1
2 1295
On 2004-11-04, Leon <sq**********@yahoo.com.tw> wrote:
such as :
c:\>python test.py
##Interval 1 seconds the "name" change next
friend : name

don't have to run clear,the "name" dynamic change content
and "friend" is stable


I'm not sure what you're asking. I'm not even sure if you are
asking a question.

On the off chance I have have guessed what you're trying to do,
try running this:

import sys,time
while True:
time.sleep(1)
sys.stdout.write("\rTime: %f" % time.time())
sys.stdout.flush()

--
Grant Edwards grante Yow! In Newark the
at laundromats are open 24
visi.com hours a day!
Jul 18 '05 #2
thank you......
it is answer I want
sorry , my English isn't good enough
"Grant Edwards" <gr****@visi.com> ¼¶¼g©ó¶l¥ó·s»D:41***********************@visi.com. ..
On 2004-11-04, Leon <sq**********@yahoo.com.tw> wrote:
such as :
c:\>python test.py
##Interval 1 seconds the "name" change next
friend : name

don't have to run clear,the "name" dynamic change content
and "friend" is stable


I'm not sure what you're asking. I'm not even sure if you are
asking a question.

On the off chance I have have guessed what you're trying to do,
try running this:

import sys,time
while True:
time.sleep(1)
sys.stdout.write("\rTime: %f" % time.time())
sys.stdout.flush()

--
Grant Edwards grante Yow! In Newark the
at laundromats are open 24
visi.com hours a day!

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: timodheere | last post by:
Hi all! I'm quite new to FOP and have spent the day on this Mac O 10.3.4 trying every possible installation combination I can think of but I must be missing something very very basic that none of...
6
by: JS | last post by:
When I write g++ in a shell I get the errormessage: g++: command not found But when I open Synaptic and search for g++ I have both  g++-2.95/3.2/3.4 listed as being installed. Hope someone...
2
by: francescomoi | last post by:
Hi. Working with PHP 4.3.10 on Fedora Core 2. I'm trying to execute phpize: /usr/local/php/bin/phpize: line 57: aclocal: command not found I've just installed: automake17-1.7.9-2...
1
by: Hennie7863 | last post by:
Hi all, At this moment I'm trying to get database mail working. According to some people it should be easy. Well...that is not the case for me. I'm having the following error: The mail could...
10
by: Justin | last post by:
We have a simple shell script called testsp.sh (located at /home/ userid) Within the shell script, the following command is called: db2 -tvf callsp.sql When the shell script is run in command...
2
by: Sahar Madahian | last post by:
Hi! I try to insert value to a table column but I'v got this error 'ORA-00933: SQL command not properly ended' Can anyone help me please? insert into SHAMROCK.CAT_SALESPRODUCT...
4
by: narenshines | last post by:
Hi I am trying to update my table using this.. update tablename set sqlquery = 'select max(upd_rows) from tablename where data_center='***' and tab_abbrev='***'' where userid='12345'; ...
4
by: outhowz42 | last post by:
This works in mySQL, but not Oracle 10g and I have no idea why. Please help! SQL> SELECT E.name, B.publisher FROM employee as E 2 INNER JOIN loan AS L ON (E.empno=L.empno) 3 INNER JOIN...
2
by: SREESHAK | last post by:
i am getting the erroe ORA:00933 sql command not properly ended ,for sqlStatement.executeUpdate( "INSERT INTO CLARITY.Z_INBOUND_AUTO_SCHEDULE(FILE_NAME, FILE_DATE, CREATED_DATE, MODIFIED_DATE,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.