Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Piping commands

Original Message
Name: Valerie (by Garibaldi)
Date: March 22, 2005 at 14:20:05 Pacific
Subject: Piping commands
OS: MS-Dos 7.10
CPU/Ram: p4\1.6 256mb
Comment:
When I pipe commands the output from the one command is sent to the next so that output can be lost if the second one does not expect input.

e.g. if at the command prompt I enter
DIR|DIR A: >PRN
the output from the first DIR is sent to the second DIR which does not accept input and the output from the first DIR is therefore lost. The output from the second DIR is sent to the printer successfully.

Question: can anyone tell me where the output from the first DIR is stored?

Thanks


Report Offensive Message For Removal


Response Number 1
Name: wizard-fred
Date: March 22, 2005 at 15:35:03 Pacific
Subject: Piping commands
Reply: (edit)
Piped data is usually written to a temporary file. If a program is not designed to use the data then it is probably just deleted.

Report Offensive Follow Up For Removal

Response Number 2
Name: Valerie (by Garibaldi)
Date: March 22, 2005 at 17:59:21 Pacific
Subject: Piping commands
Reply: (edit)
Thanks Wiz F.

That's not the answer I hoped for but I guess I cannot have everything I want.


Report Offensive Follow Up For Removal

Response Number 3
Name: wizard-fred
Date: March 23, 2005 at 02:54:17 Pacific
Subject: Piping commands
Reply: (edit)
What were you trying to accomplish?

Report Offensive Follow Up For Removal

Response Number 4
Name: Valerie (by Garibaldi)
Date: March 23, 2005 at 14:12:06 Pacific
Subject: Piping commands
Reply: (edit)
I was trying to set up some Function key (aka Softkey) to install & exit from QBasic 4.5 but found that any screen output from the QB program simply disappeared because the next command was 'CD\' or 'CD..' to return to the root directory.

Got any brilliant ideas? I can achieve this by using two Function keys, one to install QB then the other to return to the root dir but really just wanted to use one. I have written a .bat file to do the job and use just one Function key to call the .bat and that works fine but am still looking!!

Thanks

V...


Report Offensive Follow Up For Removal

Response Number 5
Name: wizard-fred
Date: March 23, 2005 at 17:15:16 Pacific
Subject: Piping commands
Reply: (edit)
If the output is graphical, I think exitting the program changes the screen mode and changes the display memory.

Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Piping commands

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




Samsung 2010PR

Unable to RDP

Windows Updates

VGA Card in 386 clone - dip-switche

Video/Graphics problem


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC