11-26-2007
Thankyou all
The problem is finally solved.
The analysis done above is absolutely correct. Hostname was hardcoded in .profile file.
I have replaced the string
SYSNAME=`uname -n | tr -s '[:lower:]' '[:upper:]'`
with
SYSNAME=`uname -n | tr '[:lower:]' '[:upper:]'`
Thanks.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this script:
#!/bin/ksh
######### Environment Setup #########
PATH=/gers/nurev/menu/pub/sbin:/gers/nurev/menu/pub/bin:/gers/nurev/menu/pub/mac
:/gers/nurev/menu/adm/sbin:/gers/nurev/menu/adm/bin:/gers/nurev/menu/adm/mac:/ge... (5 Replies)
Discussion started by: heprox
5 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
3. UNIX for Dummies Questions & Answers
I've noted that in order to use commands like ifconfig, I have to prefix the commands with the directory.
/etc/profile shows that the paths should be part of the PATH environment variable; any idea where the bug is?
:confused:
# /etc/profile
# System wide environment and startup... (1 Reply)
Discussion started by: jon80
1 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I have a ftp server called atlantis. Because of the f...g french characters, I noticed something very weird. Depending on what program I use (ftp, lftp or ssh) the same character is displayed as three different ways.
On my local computer, the file is correctly displayed as "modéles".... (1 Reply)
Discussion started by: chebarbudo
1 Replies
5. AIX
I faced an interesting problem on my AIX servers. When I checked last logins with command last I saw that hostnames are wrong. Let say, I made login from workstation xxxxx and with the command last I saw:
root pts/2 yyyyy 5 jan 15:38 still logged in
Ping xxxxx and ping... (3 Replies)
Discussion started by: giovanni
3 Replies
6. Emergency UNIX and Linux Support
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies
7. UNIX for Dummies Questions & Answers
Hello I'm very new to Linux and shell scripting so I only know basic stuff. I'm making a script with the purpose of finding the longest string or word in a file. Here's what I got so far:
#!/bin/bash
longest=""
for i in $(strings -n $1); do
if ]
then
longest=$i
fi
done
echo $longest... (4 Replies)
Discussion started by: SCB
4 Replies
8. UNIX for Dummies Questions & Answers
I have an alias defined in which I wish to print the contents of a specific directory using 'ls' based on the if/then condition. The if/then conditions are being correctly evaluated, and the 'ls <path>' result is correct (tested directly in a terminal) although for some reason it seems the 'ls... (4 Replies)
Discussion started by: coldcoffeecup
4 Replies
9. UNIX for Advanced & Expert Users
deleted (0 Replies)
Discussion started by: hce
0 Replies
LEARN ABOUT MOJAVE
optisa
optisa(1) User Commands optisa(1)
NAME
optisa - determine which variant instruction set is optimal to use
SYNOPSIS
optisa instruction_set...
DESCRIPTION
optisa prints which instruction_set out of the ones specified in the command will perform best on this machine. In this case, ``best''
is defined by the order in which instruction set names are returned by isalist(1). Possible values for instruction_set are given in
isalist(5).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
EXIT STATUS
The following exit values are returned:
0 One of the instruction_set values you specified is printed by this command.
1 There is no output; that is, this machine cannot use any instruction_set that you specified with the optisa command.
SEE ALSO
isalist(1), uname(1), attributes(5), isalist(5)
NOTES
optisa is preferable to uname -p or uname -m (see uname(1)) in determining which of several binary versions of a given program should be
used on the given machine.
SunOS 5.10 25 Jul 1997 optisa(1)