rediretion and pipes in DOS shell cmd interpreter

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions rediretion and pipes in DOS shell cmd interpreter
# 1  
Old 06-27-2005
rediretion and pipes in DOS shell cmd interpreter

Hello,

I am trying to accomplish the following.

Send the output of a command to the screen (this happens by default) as well as capture the output of the screen to a log file.

How can this be achieved in DOS command interpreter syntax.
Any ideas/suggesstions/indicators are greatly appreciated. Thanks.
# 2  
Old 12-10-2005
Windows, AFAIK, doesn't have the capability ... i downloaded and installed Cygwin's tee.exe to get around this problem ... and other stuff ... Smilie
# 3  
Old 11-03-2006
This may be a workaround for anyone looking to do something similar

Code:
C:\temp>dir | find "zip" > output.txt | MORE output.txt

I realize this is an old post I'm replying to.

Last edited by L505; 11-03-2006 at 08:33 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert for command from DOS to SHELL

Well, this command has served me quite well under DOS for %%X in (*.txt) do COMMAND however in linux it just outputs: "./install.sh line 1: '%%x': not a valid identifier. Ideas ? Thanks in advance (2 Replies)
Discussion started by: pasc
2 Replies

2. Solaris

Perl Interpreter Default Shell

Hello. We have recently changed from HP Unix Servers to Solaris. On the HP Severs we were using the POSIX shell. Solaris is using the Bourne sh. We are using ksh as our default shell after login. The problem we are encountering is when something like Perl or Cron uses the shell to execute a... (5 Replies)
Discussion started by: mix123
5 Replies

3. UNIX for Dummies Questions & Answers

Shell BASIC interpreter(s)...

I am looking for a simple BASIC Interpreter written in a shell scripting language. For me something like this would be a great learning tool... After much goggle eyed Googling I came upon this:- https://gist.github.com/cander/2785819 It is small and I haven't tried it yet as I am at work... (6 Replies)
Discussion started by: wisecracker
6 Replies

4. Linux

Dos shell

Dear all, I am trying to write a unix shell with C++ that is similar to Windows command line. I planned to call it Dosh (DOS-sHell).That means you can directly run dos or win32 console programs with it. It will be distributed according to the license g GPL. Any advice? (This is my first c++ program... (3 Replies)
Discussion started by: elgarteo95
3 Replies

5. Shell Programming and Scripting

Building a script in Ubuntu (Linux) from existing DOS .cmd

Greetings, I would be very grateful to anyone who is willing to help and knows there scripting and how to convert a DOS CMD script. :) In this posting I am also hoping to pass on information to anyone wanting to see a bit of VMware command line stuff. I have made a script (batch file) that runs... (11 Replies)
Discussion started by: dp123
11 Replies

6. Shell Programming and Scripting

Test for shell interpreter at beginning of script

What would be the best way or method to determine or test for the shell interpreter at the beginning of a script in the event one shell is not available? If I use the following: #!/bin/bash and /bin/bash is not available, then use I'd like to use /bin/ksh if it is available. #!/bin/ksh (8 Replies)
Discussion started by: nck
8 Replies

7. UNIX for Dummies Questions & Answers

Shell and commandline interpreter-definitions

What is the difference between the(a) shell and the (a) command-line interpreter? Here we're talking about the complete dummy question, but could someone point me right. (yes, have written scripts in for instance bash shell, and and grepp-ed my way around ....:eek: (4 Replies)
Discussion started by: amkgw
4 Replies

8. Shell Programming and Scripting

bash shell script and ms-dos

Hi... I need your help..... I would like to create a bash shell script, which it could someway to stimulate the MS DOS to accept and do the most basic commands of MS DOS... (1 Reply)
Discussion started by: space13
1 Replies

9. UNIX for Dummies Questions & Answers

Shell-Script und Pipes

Hi, beginne gerade mich in der UNIX Welt zu recht zu finden : habe nun folgendes Anliegen, hoffe ihr könnt mir helfen (ist sicher trival für euch, sorry dafür -) ) Ich möchte mir ein kleines Shell-Script schreiben , welches mir dateien eines bestimmten verzeichnisses anhand der Anzahl der... (4 Replies)
Discussion started by: anja_22
4 Replies

10. Filesystems, Disks and Memory

PIPEs and Named PIPEs (FIFO) Buffer size

Hello! How I can increase or decrease predefined pipe buffer size? System FreeBSD 4.9 and RedHat Linux 9.0 Thanks! (1 Reply)
Discussion started by: Jus
1 Replies
Login or Register to Ask a Question