![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| awk to compare lines of two files and print output on screen | chlfc | Shell Programming and Scripting | 3 | 03-24-2008 04:16 AM |
| To parse through the file and print output using awk or sed script | cdfd123 | Shell Programming and Scripting | 4 | 03-03-2008 12:07 PM |
| perl - print to a log file and screen | mjays | Shell Programming and Scripting | 6 | 08-21-2007 09:34 AM |
| print to screen and to file using awk?! | satnamx | Shell Programming and Scripting | 2 | 04-25-2006 02:33 PM |
| echo or print to screen and file | Shakey21 | UNIX for Dummies Questions & Answers | 2 | 01-09-2002 07:56 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to print script output to screen and file
Hi all,
I have a script that bulk loads thousands of lines of data. I need to log the output during the execution of the script. I know I can redirect (">") the output to a file; however, I want the output going to both the screen and the log file. I thought I could use pipe to pipe the output to a new file but its not working. For example: ksh LoadAll.sh > Load.log --> writes only to log ksh LoadAll.sh | Load.log --> command error anyone know how this can be done? thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|