Skip to content

The runProgram.sh script facilitates the compilation and execution of programs written in Java, Python, C, and C++. It automates the process of running a program with specified input data, provided by the user via command-line arguments.

Notifications You must be signed in to change notification settings

Austinwenyz/Simple-Program-Execution-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Program Execution Script

  • Warning:please use chmod +x runProgram.sh to give permission to run before use.

Usage

./runProgram.sh <path_to_program_file> <path_to_test_data_file>

Parameters:

  • <path_to_program_file>: The relative or absolute path to the program file.
  • <path_to_test_data_file>: The relative or absolute path to the file containing test data.

Supported Languages:

  • Java (.java)
  • Python (.py)
  • C (.c)
  • C++ (.cpp)

Example:

./runProgram.sh MyProgram.java input.txt

The script will automatically detect the file type based on the extension and execute the corresponding actions.


程序执行脚本

警告! 在使用前请使用chmod +x runProgram.sh赋予权限运行

使用方法

./runProgram.sh <程序文件路径> <测试数据文件路径>

参数:

  • <程序文件路径>:程序文件的相对或绝对路径。
  • <测试数据文件路径>:包含测试数据的文件的相对或绝对路径。

支持的语言:

  • Java(.java
  • Python(.py
  • C(.c
  • C++(.cpp

示例:

./runProgram.sh MyProgram.java input.txt

脚本将根据文件扩展名自动检测文件类型,并执行相应的操作。

About

The runProgram.sh script facilitates the compilation and execution of programs written in Java, Python, C, and C++. It automates the process of running a program with specified input data, provided by the user via command-line arguments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages