Skip to content
Advertisement

Using a bash script to dynamically generate another bash script and run it

Is there a way to generate a Bashscript dynamically using a Bashscript, change the mod of the generated Bashscript to allow execution, and then run the generated Bashscript?

Advertisement

Answer

yes it is totally feasible!

JavaScript

gonna give you the output like :

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement