フィルターのクリア

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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by