Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed

From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg

eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like

#!/usr/bin/bash
....
....
  case $INPUT_STRING in
	1)
		/usr/bin/php  /folder/subfolder/file.php
		break
		;;
	2)
		/usr/bin/perl  /folder/subfolder/file.pl
		break
		;;
	3)
		/usr/bin/python  /folder/subfolder/file.py
		break
		;;
	*)
		/usr/bin/ruby /folder/subfolder/file.... # not familiar
		;;
  esac
...
...
echo 
echo "That's all folks!"

How can we help you? What's your question? What isn't working? How is it not working? What's the desired result that you are not getting? What's your intend?

1 Like