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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Wrong Ouput when using printf under SFU ilak1008 Windows & DOS: Issues & Discussions 5 06-02-2007 03:20 AM
Identifying same character and ouput the sum Raynon Shell Programming and Scripting 12 03-21-2007 11:59 PM
capture the ouput! azmathshaikh Shell Programming and Scripting 0 12-20-2005 07:23 AM
Red Hat - ouput capture juxtaman UNIX for Dummies Questions & Answers 3 04-10-2003 10:31 AM
Locating files and directing ouput klannon Filesystems, Disks and Memory 2 03-11-2002 12: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 02-20-2008
minifish minifish is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 31
Cannot redirect ouput?????

Hello experts,
I'm testing a program that prints error message to the screen.
I want to redirect the output to a file using >. but the message only prints on screen and not writing to the file,
Any suggestion on what I might try?
  #2 (permalink)  
Old 02-20-2008
minifish minifish is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 31
ok, I got this part. If I want to redirect error message I should use 2>.
now come to my 2nd question. how do I put the program in the background and redirect the error message to a file?
file.sh & 2>?????????
  #3 (permalink)  
Old 02-20-2008
bobbygsk bobbygsk is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 90
Quote:
Originally Posted by minifish View Post
ok, I got this part. If I want to redirect error message I should use 2>.
now come to my 2nd question. how do I put the program in the background and redirect the error message to a file?
file.sh & 2>?????????
<filename> 2><path/filename> &
  #4 (permalink)  
Old 02-20-2008
minifish minifish is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 31
Quote:
Originally Posted by bobbygsk View Post
<filename> 2><path/filename> &
YAY
Closed Thread

Bookmarks

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 04:55 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