Effacer les filtres
Effacer les filtres

Run linux command in background from matlab

9 vues (au cours des 30 derniers jours)
Jay Shewale
Jay Shewale le 9 Juil 2023
Modifié(e) : Jay Shewale le 9 Juil 2023

I want to run linux command from matlab Pl help

Réponse acceptée

Shivam
Shivam le 9 Juil 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 commentaires
Jay Shewale
Jay Shewale le 9 Juil 2023
Modifié(e) : Jay Shewale le 9 Juil 2023
Thank you so much
Walter Roberson
Walter Roberson le 9 Juil 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by