OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to identify if provided string is a bash or python script

  • Thread starter Thread starter John Carter
  • Start date Start date
J

John Carter

Guest
I know this sounds weird, and it is (it wasn't my idea).

From an api endpoint, I fetch a bash or python script, (in a string) and then I have to run it. My question: Is there a way to find out which of the two languages it is?
<p>I know this sounds weird, and it is (it wasn't my idea).</p>
<p>From an api endpoint, I fetch a bash or python script, (in a string) and then I have to run it. My question: Is there a way to find out which of the two languages it is?</p>
 

Latest posts

M
Replies
0
Views
1
MusicLovingIndianGirl
M
Q
Replies
0
Views
1
quora question
Q
Top