Page 1 of 1 1
Topic Options
#49224 - 2000-03-21 10:27 AM User Input
Anonymous
Unregistered


Hey Guys
I'm trying to write a script to query the user for the system SN# IE dell "zkh42" and out put that keyboard input to a file on a server. Have got the file creation alright but trying to figure out how to require keyboard input and redirect that input back to the file. Any help would be appreciated!
Thank you all for your help!

------------------
THANKS
MARK =)

Top
#49225 - 2000-03-21 07:41 PM Re: User Input
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX

open (1,"file.txt",5) ;using mode 5 means that is file is not found create it and open it for output
gets $input
writeline(1,$input + chr(13) + chr(10))

to stop the 0's that are put on the screen I use a $q = for the open and writeline commands

$q = open(1,"test.txt",5)
.....

Bryce

Top
Page 1 of 1 1


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

Who's Online
0 registered and 507 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.1 seconds in which 0.077 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