
Maybe this is a stupid question, but I'm far from a linux expert ;-) run script > outputfile redirects the output of your script to the specified outputfile, but can you do this redirection while at the same time still reading the output at the console? (so without having to use "cat" every 5 seconds) tralala, Sofie

so you want to redirect to a file and read what is been redirected? If this is the case then you can use the command 'tee', which will output to stdout and to the next in a pipeline. run script | tee > outputfile And I don't rerally get how cat wouldn't be redirected to the same output file as well ;) Kenny Sofie Van Landeghem wrote:
Maybe this is a stupid question, but I'm far from a linux expert ;-)
run script > outputfile redirects the output of your script to the specified outputfile, but can you do this redirection while at the same time still reading the output at the console? (so without having to use "cat" every 5 seconds)
tralala, Sofie _______________________________________________ Binari mailing list Binari@psb.ugent.be https://maillist.psb.ugent.be/mailman/listinfo/binari
-- ================================================================== Kenny Billiau Web Developer Tel:+32 (0)9 331 36 95 fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, Ghent University Technologiepark 927, 9052 Gent, BELGIUM kenny.billiau@psb.ugent.be http://bioinformatics.psb.ugent.be ==================================================================

What i meant is that right now i just redirect to an outputfile and then while it's running, I use "cat outputfile" to see how the program's doing (in another console) ;-) But thanks for the solution, that's what I needed! Sofie Kenny Billiau wrote:
so you want to redirect to a file and read what is been redirected? If this is the case then you can use the command 'tee', which will output to stdout and to the next in a pipeline.
run script | tee > outputfile
And I don't rerally get how cat wouldn't be redirected to the same output file as well ;)
Kenny
Sofie Van Landeghem wrote:
Maybe this is a stupid question, but I'm far from a linux expert ;-)
run script > outputfile redirects the output of your script to the specified outputfile, but can you do this redirection while at the same time still reading the output at the console? (so without having to use "cat" every 5 seconds)
tralala, Sofie _______________________________________________ Binari mailing list Binari@psb.ugent.be https://maillist.psb.ugent.be/mailman/listinfo/binari
-- ================================================================== Sofie Van Landeghem PhD Student VIB Department of Plant Systems Biology, Ghent University Bioinformatics and Evolutionary Genomics Technologiepark 927, 9052 Gent, BELGIUM Tel: +32 (0)9 331 36 95 fax:+32 (0)9 3313809 Website: http://bioinformatics.psb.ugent.be ==================================================================

ah, now I get the cat :) you could use a second console and use 'tail -f outputfile' which would show you the same file and every new contents it gets :) -Kenny Kenny Billiau wrote:
so you want to redirect to a file and read what is been redirected? If this is the case then you can use the command 'tee', which will output to stdout and to the next in a pipeline.
run script | tee > outputfile
And I don't rerally get how cat wouldn't be redirected to the same output file as well ;)
Kenny
Sofie Van Landeghem wrote:
Maybe this is a stupid question, but I'm far from a linux expert ;-)
run script > outputfile redirects the output of your script to the specified outputfile, but can you do this redirection while at the same time still reading the output at the console? (so without having to use "cat" every 5 seconds)
tralala, Sofie _______________________________________________ Binari mailing list Binari@psb.ugent.be https://maillist.psb.ugent.be/mailman/listinfo/binari
-- ================================================================== Kenny Billiau Web Developer Tel:+32 (0)9 331 36 95 fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, Ghent University Technologiepark 927, 9052 Gent, BELGIUM kenny.billiau@psb.ugent.be http://bioinformatics.psb.ugent.be ==================================================================
participants (2)
-
Kenny Billiau
-
Sofie Van Landeghem