[scilab-Users] "unix" or "unix_g" ... use + portability
paul.carrico at free.fr
paul.carrico at free.fr
Thu Jun 7 09:15:45 CEST 2012
Dear All,
AS ever spoken herebellow, I'm working on the portability from Windows OS to Linux oS including bash instructions ....
Original code under Windows (works fine):
commandline_BACON = "( ECHO ;INPUT """ + INPUT_FILE_NAME + ".dat"" & ECHO ;.FIN& ECHO;.STOP ) | " + samcef_path + "\Bacon NOM=" + INPUT_FILE_NAME +" SAM_PREFIX=SAM_TMPDIR=banque=" + INPUT_FILE_NAME + ".dat "
[rep,stat,err]=unix_g(commandline_BACON);
Nota :
- INPUT + .FIN + .STOP are specific keywords of the solver ... and they lead to error with sh
- I'm not "bash" skilled so I've not found the problem
- I've ever tested both unix_g and unix scilab keywords ...
Any advice or any doc on how to avoid this trouble ?
thanks in advance
Paul
----- Mail original -----
De: "paul carrico" <paul.carrico at free.fr>
À: users at lists.scilab.org
Envoyé: Mercredi 6 Juin 2012 22:47:12
Objet: [scilab-Users] "unix" or "unix_g" ... use
Hi all,
I'm currently rewriting programs (initially developped under Windows OS) on Linux OS ... and I've some troubles ...
under Linux, why the following code does not work : unix('firefox') ... 'firefox is just for the example'
from the help, 'unix' is equivalent to 'sh' ... on a terminal 'sh firefox' or simply 'firefox' works ????
It's probably a stupid question, but I've many "command lines" to lauch from scilab ...
Thanks
Paul
--
To unsubscribe from this mailing-list, please send an empty mail to
users-unsubscribe at lists.scilab.org
To check the archives of this mailing list, see
http://mailinglists.scilab.org/
More information about the users
mailing list