Running some commands in the Command prompt automatically

Is there any way to run some command automatically in the command prompt like "sudo apt-get install ...." every time i run my MATLAB code?

댓글 수: 2

Why not just call those commands from your code?
Mr. 206
Mr. 206 2018년 9월 11일
편집: Mr. 206 2018년 9월 11일
I don't know how to do that.

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

답변 (1개)

OCDER
OCDER 2018년 9월 11일

0 개 추천

댓글 수: 4

Can i use command like "sudo apt-get install..." ?
OCDER
OCDER 2018년 9월 11일
편집: OCDER 2018년 9월 11일
Did you try?
system('sudo apt-get install ...')
What error are you getting?
It is not saying an error but printing this:
sudo: no tty present and no askpass program specified
ans = 1

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2018년 9월 11일

댓글:

2018년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by