![]() |
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 |
| 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 |
| how to redirect the output of a grep command to a file inside a shell script | kripssmart | Shell Programming and Scripting | 11 | 06-19-2008 07:28 AM |
| how to get the output of a grep command to a file inside a shell script | kripssmart | UNIX for Dummies Questions & Answers | 1 | 06-16-2008 03:12 PM |
| Script that Redirect SSH output via cron | primp | Shell Programming and Scripting | 4 | 06-14-2008 02:46 PM |
| [BASH] redirect standard error and use it inside | Pescator | Shell Programming and Scripting | 2 | 03-03-2008 09:20 AM |
| how to find Script file location inside script | asami | Shell Programming and Scripting | 10 | 03-15-2006 12:57 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How redirect script output from inside of script?
Is it possible to redirect a script output by command inside of that script?
I mean, if I have a script 'dosome.sh' I could run it by Code:
>dosome.sh > dosome.log (Do not advise, please, put redirection to a log file from every command of that script. It is already unrealistical.) So I would image something like that: Code:
#! /usr/bin/bash <redirection command> .... .... script body .... # end of script Code:
>dosome.sh | tee dosome.log |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|