A question for writing a script of a software

Asked by jeffwang

I would like to write a script for installing Matlab. and then when I input the command "MatLab", the installation will start. Also , I have written a configure file called "matlab.installer.ini", I hope the installation will be unattended. So how can I write this script? Thanks

(I have copied the files from MatLab CD under "/usr/Matlab",and "matlab.installer.ini" is also under this directory)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
peter (peter-neuweiler) said :
#1

In a Text editor (gedit) you can write a shell script with the following lines:

1: sudo apt-get install programname
2: read i

Read i cause that the terminal will stay open after the sudo command.

You can also build a launcher for this shellscript. Create a launcher and as the command enter the following:
1: sh /root/Own_Data/Sys_Admin/Trash/shell-script.sh

Hope it helps.
Peter

Can you help with this problem?

Provide an answer of your own, or ask jeffwang for more information if necessary.

To post a message you must log in.