Solved

how does "The process tried to write to a nonexistent pipe." error message mean?

Posted on 2008-10-22
6
1,716 Views
Last Modified: 2012-05-05
I am running the batch file below as follow
batch.cmd  | tee run4.txt

and I get this error....it still runs fine, but I see no out put on the console,  but I do see output in run.txt
cd "DPM Reg Files" 
del  *.reg /Q
cd ..
 
cd "DPM command files" 
del *.cmd /Q
cd ..
 
del Kioskbuildsed.txt
CustomerSolutionDatabaseReader.exe -DBinput "CSD_Interface.XML"  -command processSedBuild -DBTranslateTable CSDQuestionTranslateTable.xml -AntBuildFile  Kioskbuidl.xml -AntSedCommandFile  Kioskbuildsed.txt 
sed -f Kioskbuildsed.txt < Kioskbuidl.xml > Kioskbuild_sed.xml
ant -f Kioskbuild_sed.xml 
 
cd "DPM Reg Files" 
copy *.reg ..\1_Ring_a\post\3-POST\REG
pause

Open in new window

0
Comment
Question by:cschene
  • 4
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
daravuth earned 250 total points
ID: 22777432
Maybe because the console was redirected during sed?

0
 

Author Comment

by:cschene
ID: 22778446
If that were the case, should I not have input up until the execution of the sed command?
0
 
LVL 1

Assisted Solution

by:daravuth
daravuth earned 250 total points
ID: 22782002
Well I don t know, maybe the output it is buffered until a new line as in unix. Does tee and sed comes from the cygwin package? If yes, do you have the script command?

you can try instead

c:\cygwin\bin\script -c "batch.cmd" run4.txt
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:cschene
ID: 22790164
sorry, what is cygwin?
0
 

Author Comment

by:cschene
ID: 22791902
never mind, I found it on web...Linux tools for windows.
0
 

Author Closing Comment

by:cschene
ID: 31508778
I never did figure it out
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question