- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unix command sanity check
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
тАО12-11-2009 04:33 AM
тАО12-11-2009 04:33 AM
Greatly appreciated. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:33 AM
тАО12-11-2009 05:33 AM
Re: unix command sanity check
Thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:49 AM
тАО12-11-2009 05:49 AM
Re: unix command sanity check
root# cmd=`which java`
root# echo `/usr/bin/awk '/assemblyIdentity version=/ {print $2} $cmd`
awk: Field $() is not correct.
The input line number is 1.
The source line number is 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:52 AM
тАО12-11-2009 05:52 AM
Re: unix command sanity check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:57 AM
тАО12-11-2009 05:57 AM
Re: unix command sanity check
Looks like the command is meant to find line containing "assemblyIdentity version=" from the output of "which java".
# which java > /tmp/a1
# awk '/assemblyIdentity version=/ {print $2}' /tmp/a1
# rm /tmp/a1
This should give same results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:59 AM
тАО12-11-2009 05:59 AM
Re: unix command sanity check
What are you trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 06:14 AM
тАО12-11-2009 06:14 AM
Re: unix command sanity check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 06:18 AM
тАО12-11-2009 06:18 AM
Re: unix command sanity check
Did you actually try to run the cmd you sent?
I'm getting nothing back from it?
If you did, can you send me the cmd used along with the screen output?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 06:19 AM
тАО12-11-2009 06:19 AM
Re: unix command sanity check
> major/minor version number w/o having to
> execute the java -version cmd.
Huh? What is "the application"? Java
itself, or some Java program? If you want
the Java version, what's wrong with "java
-version"?
> What are you trying to do?
Still a mystery. What, exactly, are you
trying to do?