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 |
|
Login |
|
|
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
|
|
|
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?
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
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 |
|
|
|