- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help about tee command...
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
Forums
Discussions
Discussions
Discussions
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
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
08-04-2004 04:05 AM
08-04-2004 04:05 AM
I would like trace all command I type in a log file.
For this I use: ksh | tee -a /tmp/log_file and I type my command "ls", "bdf", "uname -a" etc...
When I read /tmp/log_file I can see the command result but not the command typed... someone can help me ?
I would like a log file where I could see my command and its result.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 04:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 04:16 AM
08-04-2004 04:16 AM
Re: Need help about tee command...
bdf | tee $logfile
for example.
Your methdology is interesing but unfamiliar to me. I wonder if its a supported use.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 04:32 AM
08-04-2004 04:32 AM
Re: Need help about tee command...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 04:40 AM
08-04-2004 04:40 AM
Re: Need help about tee command...
The tee command duplicates its stdin stream and end sends one copy to stdout and the other one to a file.
With "ksh | tee -a /tmp/log_file" the stdout of ksh is piped to tee's stdin. So tee copies ksh's stdout to the file. But what you are typing at the prompt is ksh's stdin... not the stdout.
Use the script(1) command instead, as already suggested.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 08:40 PM - last edited on 09-16-2024 02:31 AM by support_s
08-04-2004 08:40 PM - last edited on 09-16-2024 02:31 AM by support_s
Re: Need help about tee command...
.sh_history and/or .bash_history files?
- Tags:
- drive