Page 1 of 1 1
Topic Options
#176619 - 2007-05-31 03:54 PM How to turn off screen output
rkanter Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 8
Loc: San Francisco
I am trying to minimize the amount of information that appears to the user during the execution of a login script. I have tried redirectoutput but that only stops '?' commands from displaying which is actually one of the few things I want displayed. Is there any way to do this?
Thanks,
-Ron


Edited by rkanter (2007-05-31 04:00 PM)

Top
#176621 - 2007-05-31 04:03 PM Re: How to turn off screen output [Re: rkanter]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Sure. You can put a $rc = in front of lets say the writeline command. The return code will be stored in $rc and will not show on the screen unless you put ? $rc in your script.

KiXtart FAQ & How to's » Suppressing Results when running scripts


Edited by Mart (2007-05-31 04:03 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176623 - 2007-05-31 04:16 PM Re: How to turn off screen output [Re: Mart]
rkanter Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 8
Loc: San Francisco
I am actually trying turn off output for 'use', 'copy', etc. Rather than modifying every line isn't there a way to just turn off the screen then after running a few lines, turning it on again?
Top
#176624 - 2007-05-31 04:26 PM Re: How to turn off screen output [Re: rkanter]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Nope.
What do you see on the screen when you use copy and use?
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176627 - 2007-05-31 05:26 PM Re: How to turn off screen output [Re: Mart]
rkanter Offline
Fresh Scripter

Registered: 2003-05-20
Posts: 8
Loc: San Francisco
Basically I see all the confirmations that the files was copied or the drive was mapped. There are several other commands that I use that are giving similar output.
Top
#176636 - 2007-05-31 08:22 PM Re: How to turn off screen output [Re: rkanter]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Can you post a piece of code that gives you the screen output?
Copy and use set @error but should not show the error on the screen by default.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176711 - 2007-06-04 09:25 AM Re: How to turn off screen output [Re: rkanter]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Are you using "SHELL" to execute the USE and COPY commands?

You should use the KiXtart builtins instead of the CMD commands - the KiXtart commands will not generate output to the screen and will allow you better control from the script.

There are simple ways of reducing the output from other SHELLed commands.

Post your script for review.

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 259 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

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

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