troubleshooting Question

Bash File on Windows

Avatar of erikTsomik
erikTsomikFlag for United States of America asked on
Linux* BashPHPWindows OS
10 Comments1 Solution53 ViewsLast Modified:
I need to convert sh file from Linux to be run on windows with PHP . I have the code in PHP executing the sh
$RESULTFILE = "/home/txi/score/temp_results/" . "results." . "$USERID" . "$TTYCPEID" . "$now.tmp";


	$COMMAND = "/home/txi/score/ $FILENAME $RESULTFILE";
	$RUNSCORE = exec("$COMMAND");

Open in new window

the sh file looks like this


export $WINEPREFIX=/var/www/.wine
/usr/local/bin/wine /home/txi/score/SCORE.EXE /home/txi/score/3030M.TXT $1 $2 2>/home/txi/score/ERRORS
touch /home/txi/score/WORKED

Open in new window

System Architect, CF programmer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros