Why are these inconsistent?


 
Thread Tools Search this Thread
Operating Systems HP-UX Why are these inconsistent?
# 1  
Old 04-07-2009
Why are these inconsistent?

Hi

I am using HP - UX...
When I execute the below commands I get these results...
Why do i get a different shell value when i run echo $SHELL?

# echo $0
ksh
# echo $SHELL
sh
# ps -p$$
PID TTY TIME COMMAND
4013 pts/7 0:00 ksh
# 2  
Old 04-07-2009
$SHELL, the name of the user's login shell, may be set from /etc/passwd or in an "init" script
# 3  
Old 04-23-2009
Quote:
Originally Posted by vidyadhar85
$SHELL, the name of the user's login shell, may be set from /etc/passwd or in an "init" script
that's it, the user login shell for $SHELL
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistent results using sort function

Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Discussion started by: aberg
6 Replies

2. UNIX for Advanced & Expert Users

Inconsistent disk information.

On one of the Unix server B.11.31. a disk that has been provisioned from the VMAX, but according to the diskinfo its show coming from clarion. sudo /opt/emc/SYMCLI/bin/symvg sho /dev/vg_<name> Volume Group Name : /dev/vg_<name> Volume Group Type : HP-UX LVM Volume Group State ... (0 Replies)
Discussion started by: kpatel786
0 Replies

3. Shell Programming and Scripting

Inconsistent behavior when sorting by column

I'm trying to sort the list below, so that multiple instances of the form pass=i_d=j are contiguous. Curiously, the standard sort command to do this works some of the time (it produced the output below) but not all of the time. the command I used was cat fileName | sort -k1.26,1.26n... (3 Replies)
Discussion started by: LeoKSimon
3 Replies

4. UNIX for Advanced & Expert Users

Iostat inconsistent avgrq-sz

Hi Experts, I have an issue with performance of oracle, the db sits on EBS volumes on and aws EC2 instance. I have captured the iostat data and feed it to iostat_plotter to forward it to the DB administrators. However what I'm trying to understand is the variable avgrq-sz, it is quite in... (0 Replies)
Discussion started by: maverick_here
0 Replies

5. Shell Programming and Scripting

Inconsistent column printing

Hi, I have a file that has inconsistently numbered columns. Like row1 has 23 columns, and row 2 has 34 columns etc. I would like to re-order the first 8 columns as required and from the 9th column till the end, I would like to print it as it is. I tried to read the re-ordered 8 columns... (7 Replies)
Discussion started by: jacobs.smith
7 Replies

6. Shell Programming and Scripting

inconsistent output using date()

I have an input list of: I am just trying to turn this list into its seconds since epoch "+%s" time equivalent. I'm trying to use the following, but every time I run the command it gives me different answers, they are close, but never the same... any clues as to why? xargs -I{} date -j -f... (3 Replies)
Discussion started by: mdlloyd7
3 Replies

7. Shell Programming and Scripting

ps -eaf gives inconsistent result

The command ps -eaf gives inconsistent result when executed on XYZ server (the command shows 1, 2 or 3 instances of the process. Ideally it should show only 1). I have attached the script file that was executed and the corresponding output. When the same script was executed on ABC server it gave... (1 Reply)
Discussion started by: rebels
1 Replies

8. UNIX for Advanced & Expert Users

inconsistent cat output

Hi I'm executing a menu script in which I `cat a file` but it's giving different output some times. Following is the code fragment taken from my script. while true do cat procs.configured echo ---------separator-------------- sleep 3 done when I execute this code fragment, `cat` outputs... (2 Replies)
Discussion started by: axes
2 Replies

9. Shell Programming and Scripting

AWK with inconsistent field layout

Input File: 1234567890123456789012345678901234 ---------------------------------- 11111 XXX xxxxx 6666666666 22222 YYY 2222222222 33333 AAA TTT xxxxx 9999999999 44444 55555 RRR UUU 5555555555 66666 TTT nnnnn 2222222222 77777 XXX ... (4 Replies)
Discussion started by: lordsmiter
4 Replies

10. Filesystems, Disks and Memory

Inconsistent memory usage display

When i was trying to store a file of size 743 MB into a directory i got a msg. that the disk is full. But when i used the df -k . command on that directory it showed only 40% in usage and the disk had more than enough memory for the file. When i checked the syslog i found that at that instant of... (2 Replies)
Discussion started by: spdas
2 Replies
Login or Register to Ask a Question