Borrar filtros
Borrar filtros

Run linux command in background from matlab

9 visualizaciones (últimos 30 días)
Jay Shewale
Jay Shewale el 9 de Jul. de 2023
Editada: Jay Shewale el 9 de Jul. de 2023

I want to run linux command from matlab Pl help

Respuesta aceptada

Shivam
Shivam el 9 de Jul. de 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 comentarios
Jay Shewale
Jay Shewale el 9 de Jul. de 2023
Editada: Jay Shewale el 9 de Jul. de 2023
Thank you so much
Walter Roberson
Walter Roberson el 9 de Jul. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by