The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cronjob - Redirect mail output to file, LINES & COLUMNS jharvey Shell Programming and Scripting 0 04-14-2008 03:19 PM
Redirect grep output into file !!!!! hanu_oracle Shell Programming and Scripting 2 04-10-2008 09:02 AM
redirect output to log file kalyanraj Shell Programming and Scripting 2 06-07-2007 12:40 AM
redirect output to file xadamz23 Shell Programming and Scripting 4 06-29-2006 11:20 AM
redirect output to file? slackware Shell Programming and Scripting 1 09-12-2003 02:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2007
jimmyc jimmyc is offline
Registered User
  
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
Redirect output to a file

Ahhhrrrggg I’m having a brain fart…

I want to take the output of a command and redirect it to a file…
This works….
$ man cp | cat >> copy_help

but this doesn’t

keytool -help |cat >> keytool_help
It just produces… these lines…
more keytool_help
[-providerClass <provider_class_name> [-providerArg <arg>]] ...
[-providerClass <provider_class_name> [-providerArg <arg>]] ...
  #2 (permalink)  
Old 01-30-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Why not just "man cp >> copy_help"?

Carl
  #3 (permalink)  
Old 01-30-2007
jimmyc jimmyc is offline
Registered User
  
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
That will work too... It's the keytool >> that is the problem. I can't get the help text to show up in a file.
  #4 (permalink)  
Old 01-30-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Actually it's the 'cat' that's a problem. What happens if you type "keytool -help >> keytool_help"?

Carl
  #5 (permalink)  
Old 01-30-2007
jimmyc jimmyc is offline
Registered User
  
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
It does create a file but no help text...
more keytool_help
[-providerClass <provider_class_name> [-providerArg <arg>]] ...

Last edited by jimmyc; 01-30-2007 at 04:15 PM..
  #6 (permalink)  
Old 01-30-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
That does appear to be some sort of help (command line options). Are you passing the right question to keytool? Maybe it needs "keytool --help" for example. Most of the linux tools are dash single character and double-dash word.

Code:
$ keytool -h
vs

Code:
$ keybool --help
Don't know what system you're on and what keytool is although a quick google search finds:

http://java.sun.com/j2se/1.3/docs/to...2/keytool.html
http://developer.apple.com/documenta...keytool.1.html

Both refer to the same tool (and it uses -help, a single dash). It might be better to just reference one of these pages for more help if this is the tool you're looking for

What output do you get if you just type keytool -help without redirecting?

Carl
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0