1

Scenario :
I have a Referee.jar program which I got from somewhere (making a point that I don't know to change that code). Also, I have 2 python files which I've written.

Currently :
The JAR file has to be executed first in the terminal with "java -jar referee.jar" and then "python 1.py" and "python 2.py" have to be typed into the following lines.

Requirement :
I want to make a shell script which will do that and store the output into a file called 'out.txt'

1 Answer 1

1

Found the answer here. Automatically answer to input prompt in windows batch
Just had to echo the file names and redirect it to the command.
My sincere apologies for not checking this before posting the question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.