Re: Running bash script from batch file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vitamin wrote:
> 
> cpicds wrote:
> > The shell script simply converts the file names from DOS to Linux
> 
> See http://wiki.winehq.org/winepath


The shell script does that correctly. However, Wine is not running the shell script and simply reporting "File not found" - although it has already successfully found the file in the "if exists" statement.

For reference, the shell script is:


Code:

#!/bin/bash
echo "javacrc.sh"
# Translates uVision file specification from Windows to Unix and
# executes Java command with translated names. Realpath is used
# because Java appears not to like the winepath output.
JARFILE="$(winepath "$2")"
HEXFILE="$(winepath "$4")"
JARFILE="$(realpath "$JARFILE")"
HEXFILE="$(realpath "$HEXFILE")"
java $1 "$JARFILE" $3 "$HEXFILE"
# Convert line ends to MS-DOS format (requires tofrodos package)
todos -u "$HEXFILE"




The echo statement output does not appear.







[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux