Solved

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

Posted on 2008-10-22
6
1,652 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
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 …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now