Hello Rahul,

Did you have a look to unix_g outputs when calling it with 3 outputs arguments: 
[rep, status, msgerr] = unix_g(commands)? Perhaps you will get 
information/error messages.

Best regards.


From: dev <dev-boun...@lists.scilab.org> On Behalf Of Rahul Drolia
Sent: Friday, April 28, 2023 9:46 AM
To: dev@lists.scilab.org
Subject: [Scilab-Dev] issue in unix_g/dos function



Hello Team,

I am trying to pass a string to unix_g function which is in turn passing to dos 
function. The string goes like this :

"C:\Users\rahul\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\scetoexe\0.2\bin\reswarp.exe"
 -r FILENAME_EMBEDDED -nc -z -o 
"C:\Users\rahul\AppData\Local\Temp\SCI_TMP_1372_32082\example\FILE_EMBEDDED.h" 
"C:\Users\rahul\AppData\Roaming\Scilab\scilab-2023.0.0\atoms\x64\scetoexe\0.2\demos\example.sce"

This command is supposed to create  FILE_EMBEDDED.h in 
SCI_TMP_1372_32082\example. This command is working is absolutely fine when I 
am executing it from command prompt from my present working directory. However, 
when I am trying to run this from scilab console by passing the entire string 
to dos function or unix_g function it is giving various kinds of syntax errors. 
I have tried all combinations of single quotes and double quotes to handle the 
issue but the issue remains the same. Ultimately, the status code coming out is 
also 1 which is not allowing further execution . Can you help ?



Rahul

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

_______________________________________________
dev mailing list
dev@lists.scilab.org
https://lists.scilab.org/mailman/listinfo/dev

Reply via email to