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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
2 ftps in script, second won't go to output file brdholman UNIX for Dummies Questions & Answers 4 11-15-2007 03:18 PM
compare file size from a output file from a script moustik Shell Programming and Scripting 7 11-07-2007 10:17 AM
How to extract output from a script to .xls file scriptlearner Shell Programming and Scripting 6 08-10-2007 02:34 AM
scp output fm script won't go to file nmikes Shell Programming and Scripting 7 01-31-2007 06:53 PM
File name of a script output cheo_pr Shell Programming and Scripting 3 09-01-2005 04:40 PM

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 11-28-2006
sumeet sumeet is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
Output of script to a file

Hi,

I have really long script doing a lot of processing. Its printing a lot of output information on standard output .i.e screen.

Is there a way to output is passed onto a file rather then printing them on screen.

Thanks
Sumeet
  #2 (permalink)  
Old 11-28-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
Code:
myScript > myScript.log
  #3 (permalink)  
Old 11-29-2006
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
Regined way is
myScript > myScript.log 2>&1
  #4 (permalink)  
Old 11-29-2006
sumeet sumeet is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
got it

..just like redirecting the output of a command we can redirect output of the script..

Thanks
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 02:46 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