필터 지우기
필터 지우기

Run linux command in background from matlab

조회 수: 9 (최근 30일)
Jay Shewale
Jay Shewale 2023년 7월 9일
편집: Jay Shewale 2023년 7월 9일

I want to run linux command from matlab Pl help

채택된 답변

Shivam
Shivam 2023년 7월 9일
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
Jay Shewale
Jay Shewale 2023년 7월 9일
편집: Jay Shewale 2023년 7월 9일
Thank you so much
Walter Roberson
Walter Roberson 2023년 7월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by