05-27-2009
Thanks for your response Dev.
First - how do i know which shell i am using?
I renamed the file .profile to .bash_profile. I logged in again but still its not displayed.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to display a system warning message at the prompt of every live terminal on a sun solaris 8 machine using CDE.
I know this can be done on a console, but what about dtterm and xterm regular windows?
Does anyone know how this is done?
What about a single terminal?
Clear skies,... (2 Replies)
Discussion started by: seismic_willy
2 Replies
2. Shell Programming and Scripting
hi all
i have script
#!/bin/bash
cd /usr3/prod
grep ERROR /usr3/prod/ind.log > /usr3/prod/ind_err.log
if test -s /usr3/prod/ind_err.log
then
echo "error during process"
else
echo "process succeed"
fi
i want that this message(echo) will be display one time at the top of the screen... (5 Replies)
Discussion started by: naamas03
5 Replies
3. Shell Programming and Scripting
hi all,
am trying to 'grep' some text from a log file and use the 'cut' command to read from that line i just grep'ed to extract date/time and response times.
code sniplet i am using is :
grep -i 'text to grep' Out.log |
while read LINE;
do
... (11 Replies)
Discussion started by: cesarNZ
11 Replies
4. Shell Programming and Scripting
Hi All,
Need urgent help!!!
Can anyone tellme how can we send a message on specific user terminal and get a response from user in return.
Thanks in advance. (3 Replies)
Discussion started by: Sadhana
3 Replies
5. UNIX for Dummies Questions & Answers
How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies
6. OS X (Apple)
I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in.
Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to open small size file only in vi editor on solaris or Linux machine
but it giving message "Terminal too wide" and then I have to come out.
As shown below:-
-rwxr-x--- 1 rkycadm rkycprd 2445 Sep 12 04:06
$ vi file.txt
Terminal too wide
:q!
----------... (2 Replies)
Discussion started by: RahulJoshi
2 Replies
8. Windows & DOS: Issues & Discussions
when I run C:\cygwin\bin\run C:\cygwin\bin\startxwin.exe it fires up a terminal by default. Can I eliminate that terminal and start the x server as a service silently and sits in my status bar just there? Thanks Jack (0 Replies)
Discussion started by: lucky7456969
0 Replies
9. Ubuntu
I am unfamiliar with below error and how to fix it, it happens when I start the terminal in Ubuntu 14.04.3. I do not send any command only press crtl+alt+T. It seems to indicate that something is missing from PATH but I’m not really sure what. Thank you :).
Command 'lesspipe' is... (24 Replies)
Discussion started by: cmccabe
24 Replies
10. UNIX for Beginners Questions & Answers
Is there any way to print the colorful message in the terminal (which is the output of a simulation) to the log file with the same color.
The colorful message at the terminal is obtained by the following codes:
/////////////codes start here///////////////////////////////////////
... (5 Replies)
Discussion started by: babunp114525
5 Replies
MHPARAM(1) [nmh-1.5] MHPARAM(1)
NAME
mhparam - print nmh profile and context components
SYNOPSIS
mhparam [components] [-all] [-component | -nocomponent] [-version] [-help]
DESCRIPTION
mhparam writes the value of the specified profile component to the standard output separated by newlines. If the profile component is not
present, the default value (or nothing if there is no default) is printed.
If the switch -component is given, then the component name is displayed along with the profile components value. This can be disabled with
the switch -nocomponent.
If more than one component is specified in the components list, then the switch -component is on by default. If only one component is
specified, then the switch -nocomponent is on by default.
If -all is specified, then all components in the nmh profile are displayed and other arguments are ignored.
Examples:
% mhparam path
Mail
% mhparam mhlproc
/usr/lib/mh/mhl
% mhparam -component Path
Path: Mail
% mhparam AliasFile rmmproc
AliasFile: aliases
rmmproc: rmmproc
% mhparam -nocomponent AliasFile rmmproc
aliases
rmmproc
% mhparam path nonexistent context
Path: Mail
context: context
mhparam is also useful in back-quoted operations:
% fgrep cornell.edu `mhpath +`/`mhparam aliasfile`
EXIT STATUS
mhparam returns the number of components that were not found.
FILES
$HOME/.mh_profile The user profile
or $MH Rather than the standard profile
<mh-dir>/context The user context
or $MHCONTEXT Rather than the standard context
PROFILE COMPONENTS
context: To determine the context file
SEE ALSO
mh-profile(5)
DEFAULTS
`-nocomponent' if only one component is specified
`-component' if more than one component is specified
`components' defaults to none
CONTEXT
None
MH.6.8 11 June 2012 MHPARAM(1)