time command problems?
I'm running a BASH shell in RHE4 and can't get any of the time command's arguments (the man page calls them "options") to work. All of the options that I've tried giving it (except -p), however, are being treated by BASH as separate commands.
Example: Code:
time -o filename date Code:
-bash: -o: command not found Code:
time --output filename date time, without any options, runs just fine. Has anyone else experienced similar problems? Am I misreading how it's supposed to work? If it really is goofed up, is there another way to redirect the output? (It normally goes to standard error.) Thanks! |
Try using the full path of the command:
Code:
/usr/bin/time |
Very weird, I'm facing the same problem too. It works if I put a leading '\', or use the full path though. Don't ask me how :)
Code:
arun ~ $ \time -o scrap date |
Quote:
:scratch: Now why didn't I think of that? 'cause I'm a :Pengy: :newbie:, that's why! Thanks matthewg42, that took care of it! ...But now I'm even more curious about what it was that caused the change. I didn't find any reference to an alias for the time command in any of the usual places (/etc/bashrc, /root/.bashrc, or even in /etc/profile). An alias command didn't turn up anything either. Where else is something like that likely to be found? |
Quote:
Code:
If the command name contains no slashes, the shell |
Sorry Berhanie. Don't know what I was thinking in that last paragraph; asking a question that I'd just finished thanking matthew for answering. :scratch:
Chock it up to a long day and not enough sleep I guess. :confused: Thanks again! |
All times are GMT -5. The time now is 07:12 PM. |