"file" command missing magic file (problem and solution)

2011-02-02 Thread Andy Sun
I encountered the following problem with command "file" in CYGWIN_NT-5.1 v1.7.7 on a PC running Windows XP Professional. It took me half an hour to figure out what the issue was so I thought I will share this and hopefully spare others from having to go through the same. I have done a quick ch

Re: running a DOS batch file from a shell script - script doesn't wait for batch file to complete before continuing

2004-12-29 Thread Andy Sun
Hi Larry, Since you were the only person who was kind enough to take the time to respond to my initial question, I owe it to you to provide a followup on this subject. I wrote a few DOS batch files as well as shell scripts to try and troubleshoot the problem. I managed to track down the problem to

Re: running a DOS batch file from a shell script - script doesn't wait for batch file to complete before continuing

2004-12-09 Thread Andy Sun
I guess I should have been more specific with my original posting... I was running pro_batch in command-line mode (pro_batch -text ...) and not interactive mode, i.e. not using the GUI at all. I thought it was implied since I was talking about running a shell script and a batch file. The shell scri

running a DOS batch file from a shell script - script doesn't wait for batch file to complete before continuing

2004-12-09 Thread Andy Sun
Hi, I have a shell script (#!/bin/sh) that runs a DOS batch file. During the execution of the shell script, it runs the DOS batch file (Pro/ENGINEER's PRO_BATCH.BAT to generate a plot file) but the script does not appear to wait for the DOS batch file to finish first before continuing. I tried