Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Removing banner from ksh output?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Removing banner from ksh output? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Removing banner from ksh output? - Jan. 25, '06, 6:20:21 PM   
edalzell

 

Posts: 9
Joined: Jan. 25, '06,
Status: offline
When I run:
posix.exe /u /c /bin/ksh -l -c /bin/cal

I get:
Welcome to the Interix UNIX utilities.

DISPLAY=localhost:0.0
January 2006
S M Tu W Th F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

Is there any way to get rid of the banner and DISPLAY lines so that all I see is the actual output?

Perhaps some settings in the .profile?

Thanks
Post #: 1
RE: Removing banner from ksh output? - Jan. 25, '06, 6:31:13 PM   
eperea

 

Posts: 40
Joined: Apr. 6, '05,
Status: offline
If you leave out the -l switch to ksh, you won't get those (since .profile will not be called). Do you really need it?

(in reply to edalzell)
Post #: 2
RE: Removing banner from ksh output? - Jan. 25, '06, 6:32:44 PM   
edalzell

 

Posts: 9
Joined: Jan. 25, '06,
Status: offline
quote:

ORIGINAL: eperea

If you leave out the -l switch to ksh, you won't get those (since .profile will not be called). Do you really need it?


Yes, as there are several environment variables that are defined in my profile that I need before running my program.

(in reply to eperea)
Post #: 3
RE: Removing banner from ksh output? - Jan. 25, '06, 6:50:39 PM   
Rodney

 

Posts: 2949
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You can write a script that sets the environment variables that you specifically need
and then invokes the program(s) you want to run.
Then start the ksh without the -l for this script instead of the program directly.

(in reply to edalzell)
Post #: 4
RE: Removing banner from ksh output? - Jan. 25, '06, 7:06:16 PM   
edalzell

 

Posts: 9
Joined: Jan. 25, '06,
Status: offline
Please see this thread for the answer.

(in reply to edalzell)
Post #: 5
RE: Removing banner from ksh output? - Jan. 25, '06, 7:09:37 PM   
eperea

 

Posts: 40
Joined: Apr. 6, '05,
Status: offline
That's what I would prefer to do, even if the additional output were not objectionable. There is quite a bit of processing done in /etc/profile, /etc/profile.lcl and .profile which seems a shame to waste time on.

(in reply to Rodney)
Post #: 6
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Removing banner from ksh output? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047