- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- time command. Getting a return code 2 from a time ...
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
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
тАО10-02-2008 07:53 AM
тАО10-02-2008 07:53 AM
Solved! Go to Solution.
- Tags:
- time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 08:52 AM
тАО10-02-2008 08:52 AM
Re: time command. Getting a return code 2 from a time command
I believe that you are seeing the return code of the command or process that you are timing. For example, consider this:
# grep SOMETHING /etc/NOFILE; echo $?
grep: can't open /etc/NOFILE
2
# time grep SOMETHING /etc/NOFILE;echo $?
grep: can't open /etc/NOFILE
real 0.0
user 0.0
sys 0.0
2
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 10:23 AM
тАО10-02-2008 10:23 AM
Re: time command. Getting a return code 2 from a time command
time: command terminated abnormally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 11:01 AM
тАО10-02-2008 11:01 AM
Re: time command. Getting a return code 2 from a time command
Posting the actual code you are running when you receive the error along with a clear notation of the release (from 'uname -a') whould be helpful.
You say "a script". I assume that you mean a shell script. If so, what shell? Showing the interpreter line (e.g. #!/usr/bin/sh) would expose that detail.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 11:53 AM
тАО10-02-2008 11:53 AM
Re: time command. Getting a return code 2 from a time command
# uname -a
HP-UX amiadv B.11.11 U 9000/800 2591752923 unlimited-user license
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 12:55 PM
тАО10-02-2008 12:55 PM
SolutionI'm still of the opinion that it is the return code of the process that you are running that you are seeing.
Is '$AMISYS_ROOT_EXECUTE/bin/bcp0100' terminating abnormally, perhaps leaving a 'core' file behind when you get the return code of two?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2008 03:07 PM
тАО10-02-2008 03:07 PM
Re: time command. Getting a return code 2 from a time command
As JRF said and your script comments indicate, the return code comes from bcp0100:
echo 'Program bcp0100 called ABORT/QUIT: time'
The message "time: command terminated abnormally" indicates bcp0100 got a signal.
Signal 2 is SIGINT.
>JRF: I'm still of the opinion that it is the return code of the process
Exactly.
>perhaps leaving a 'core' file behind when you get the return code of two?
No core files for SIGINT.
- Tags:
- SIGINT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2008 03:19 AM
тАО10-03-2008 03:19 AM