Best Answer: How Run Multiple Unix Commands in Java?
Contents How Run Multiple Linux Commands in Java? Say If You Want to Scan File(S) Using Antivirus You Have to Use Shell Command in Java Program. Command[2] =...
Contents
How run multiple Linux commands in java?
Say if you want to scan file(s) using antivirus you have to use shell command in java program. command[2] = “f: && dir && cd snap”; will execute three command. Use && in string to use multiple command.
Must Read
Can I run multiple Unix commands in one time?
The semicolon (;) operator allows you to execute multiple commands in succession, regardless of whether each previous command succeeds. For example, open a Terminal window (Ctrl+Alt+T in Ubuntu and Linux Mint). Then, type the following three commands on one line, separated by semicolons, and press Enter.