Home 0P3N Blog Create Simple Terminal Scripts with Juliar.Future sysExec
Ready to Start Your Career?
Create Free Account
By: Rattar
July 4, 2017

Create Simple Terminal Scripts with Juliar.Future sysExec

By: Rattar
July 4, 2017
By: Rattar
July 4, 2017
Hello all,I haven't posted an Op3n in a while. I've been very busy. In this tutorial, we will learn the power of a new Juliar command: "sysExec()"sysExec() allows you to execute Command Prompt and Terminal commands right inside of Juliar. You might be thinking why would you want to use Juliar to create scripts that you can just create in bash?Simple: Organization and Juliar Features.Juliar allows you to create complex scripts place them into different files and create a Juliar lib. Since sysExec returns the output back to Juliar, you have access to chain different commands and use Juliar commands such as convenient loops, variable declaration, etc...How do you use the Juliar sysExec() command?Simple - See below:
function main() = {      string output = sysExec('dir');      printLine(output);}
Please note that sysExec is OS independent. So, sysExec() should output the listing of directories on any OS.NOTE: New versions of Juliar will attempt to use PowerShell instead of Terminal in order to have access to similar bash commands. This will allow you to write all commands "bash" style.
For more information visit https://juliar.org and ask questions on our forums at https://juliar.org/forums
Request Demo

Build your Cybersecurity or IT Career

Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry