- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "env" is not working in HP-UX 11.00
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 10:51 AM
тАО06-23-2009 10:51 AM
I am using HP-UX 11.00.
I issued following command to view the environmental variables.
EX:
# env
it is not giving any outputs.
But i am able to use echo to view the output of particular variable.
# echo $SHELL
/usr/bin/sh
For Your Information:
# which env
/usr/bin/env
How to make this command working.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 10:57 AM
тАО06-23-2009 10:57 AM
Re: "env" is not working in HP-UX 11.00
# ls -l /usr/bin/env
show?
From one of my 11.0 servers it is:
-r-xr-xr-x 1 bin bin 16384 Nov 7 1997 /usr/bin/env
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 11:12 AM
тАО06-23-2009 11:12 AM
Re: "env" is not working in HP-UX 11.00
Verify the 'env' has not been aliased like:
# alias env='env -i'
Type:
# alias
...to see if it has.
If it has been aliased you can do:
# unalias env
...or simply run the absolute path as Patrick suggested:
# /usr/bin/env
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 03:37 PM
тАО06-23-2009 03:37 PM
Re: "env" is not working in HP-UX 11.00
whence -v env
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 04:57 AM
тАО06-24-2009 04:57 AM
Re: "env" is not working in HP-UX 11.00
Pls find the outputs.
root@lgapps:/root > which env
/usr/bin/env
root@lgapps:/root > whereis env
env: /usr/bin/env /usr/share/man/man1.Z/env.1
root@lgapps:/root > whence -v env
env is /usr/bin/env
root@lgapps:/root > which env
/usr/bin/env
root@lgapps:/root > ll /usr/bin/env
-r-xr-xr-x 1 bin bin 0 Jun 22 17:51 /usr/bin/env
root@lgapps:/root > alias
D='export DISPLAY=lavxx08:0'
D2='export DISPLAY=lavpc03:0 ; unset LINES'
MD='export DISPLAY=AA215350:0'
autoload='typeset -fu'
c=clear
command='command '
functions='typeset -f'
glance='gpm &'
grep=/usr/bin/grep
h=history
history='fc -l'
integer='typeset -i'
l='ls -Fa'
local=typeset
mcd='mount /dev/dsk/c0t2d0 /cdrom'
nohup='nohup '
ps='ps -ef'
psg='/bin/ps -ef | grep -v grep | grep'
queback='/backup/bin/queback '
r='fc -e -'
rl=rlogin
stk='stk -m &'
stop='kill -STOP'
suspend='kill -STOP $$'
type='whence -v'
ucd='umount /SD_CDROM'
v=dtpad
vi=/usr/bin/vi
xomniback='xomniback &'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 05:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 05:04 AM
тАО06-24-2009 05:04 AM
Re: "env" is not working in HP-UX 11.00
Your problem is the someone truncated '/usr/bin/env':
-r-xr-xr-x 1 bin bin 0 Jun 22 17:51 /usr/bin/env
Note the size is zero! This would appear to have been done on June 22.
If you have another (same OS level) server you could copy the binary from there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 06:26 AM
тАО06-24-2009 06:26 AM
Re: "env" is not working in HP-UX 11.00
Thanks a lot.
Now it is working fine after coping the file env from some other server.