troubleshooting Question

Bash File on Windows

Avatar of erikTsomik
erikTsomikFlag for United States of America asked on
LinuxPHPWindows OS* Bash
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");

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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
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