Page 1 of 1 1
Topic Options
#17538 - 2002-02-15 03:39 PM Numbers appear on screen after completed command
ABCIT Offline
Lurker

Registered: 2002-02-13
Posts: 3
Hi,

Everything in my script works fine. However, when input is entered, or a line written to a log I get numbers appear on the screen, like 2253. These appear after the data

eg. Log updated2253

I expect these are just control codes saying that the command has been done. But how do I get them from appearing on the screen

Cheers

Top
#17539 - 2002-02-15 03:56 PM Re: Numbers appear on screen after completed command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You will need to assign the return code to a variable. If you write
code:
readvalue('HKEY_CURRENT_USER\Whatever','test')

then the return code of the readvalue function will be displayed in the output window. If you write
code:
$retcode=readvalue('HKEY_CURRENT_USER\Whatever','test')

then the return code will be assigned to the variable $retcode and you can use the return code to check whether your command was successful.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.048 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org