Run linux command in background from matlab

4 visualizzazioni (ultimi 30 giorni)

I want to run linux command from matlab Pl help

Risposta accettata

Shivam
Shivam il 9 Lug 2023
Hi Jay, for running linux command in background from matlab, you can use system("your_command &") , & after the command ensure that's the command runs on background.
  3 Commenti
Jay Shewale
Jay Shewale il 9 Lug 2023
Modificato: Jay Shewale il 9 Lug 2023
Thank you so much
Walter Roberson
Walter Roberson il 9 Lug 2023
getenv('SHELL')
ans = '/bin/bash'
system('echo $0')
/bin/bash
ans = 0
So at least on MATLAB Online, any command you send to system() is processed as a bash command, and can use full syntax for I/O redirection and any multiple-process support.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by