Converting bash commands to run via js python etc etc | SoloLearn: Learn to code for FREE!

+1

Converting bash commands to run via js python etc etc

I'm wanting to make a script that when ran will rm rf * the root directory..but not in bash obviously. Any suggestions as to how

5/10/2018 5:41:12 AM

uid

4 Answers

New Answer

+2

https://stackoverflow.com/questions/4256107/running-bash-commands-in-python

+2

Why would you want to use one scripting language to run another scripting language? The first interpreter's process will need to invoke another process and load the second interpreter. Furthermore, rm rf * on the root directory is going to fail, even when running as root, because multiple files are going to be in use by the system. Way to f&#@% your system up dude.

+1

Thanks

+1

I'm not planning on running rm rf * on my system I'm not that retarded.