Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2020-06-17 17:12:17

kartikpandya
Member
Registered: 2020-06-17
Posts: 8

In windows, How to run asterstudy from terminal?

I have downloaded Sm2019 it is working ok.

I want to run asterstudy (export file) from terminal in windows 8.1.

i can't open salome shell.

kindly guide me with command lines to be written in terminal.

thanks for your time and look forward to reply.

Offline

#2 2020-06-18 16:47:40

kartikpandya
Member
Registered: 2020-06-17
Posts: 8

Re: In windows, How to run asterstudy from terminal?

I am waiting for guidance

I am newbee to salome meca

Offline

#3 2020-06-18 17:03:02

dezsit
Member
Registered: 2012-06-27
Posts: 68
Website

Re: In windows, How to run asterstudy from terminal?

Hello,

Try this:
SALOME_INSTALL_DIR\PRODUCTS\code_aster\as_run export_file

BR
dezsit

Offline

#4 2020-06-19 16:53:14

kartikpandya
Member
Registered: 2020-06-17
Posts: 8

Re: In windows, How to run asterstudy from terminal?

I have done below procedure to run export file from command terminal.

Kindly guide me what mistake i am doing.





Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Lenovo>cd SALOME_INSTALL_DIR\PRODUCTS\code_aster\as_run export_file
The system cannot find the path specified.

C:\Users\Lenovo>cd ..

C:\Users>cd..

C:\>cd C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster>as_run export_file
'as_run' is not recognized as an internal or external command,
operable program or batch file.

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster>cd C:\Users\Lenovo\Desktop\FE
A\study1_Files\RunCase_9\Result-Stage_1

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>as_run export_
file
'as_run' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>dir
Volume in drive C is Windows8_OS
Volume Serial Number is E8B3-3166

Directory of C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1

18-06-2020  22:39    <DIR>          .
18-06-2020  22:39    <DIR>          ..
18-06-2020  21:29               671 export
18-06-2020  22:21     3,000,729,608 glob.1
18-06-2020  21:29                46 launcher_script.bat
18-06-2020  22:27            70,798 message
18-06-2020  22:27         4,818,613 pick.1
18-06-2020  21:29             3,736 RunCase_9_Stage_1.comm
18-06-2020  22:31            74,698 stderr_command_salome.log
18-06-2020  21:29         3,534,029 _ExportedFromSalomeObject_0_1_2_5.med
18-06-2020  21:29           293,253 _ExportedFromSalomeObject_0_1_2_6.med
18-06-2020  21:29         1,978,657 _ExportedFromSalomeObject_0_1_2_7.med
18-06-2020  21:29        13,902,145 _ExportedFromSalomeObject_0_1_2_8.med
              11 File(s)  3,025,406,254 bytes
               2 Dir(s)  98,020,663,296 bytes free

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>as_run export
'as_run' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>export
'export' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>./export
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>

Offline

#5 2020-06-19 17:30:39

dezsit
Member
Registered: 2012-06-27
Posts: 68
Website

Re: In windows, How to run asterstudy from terminal?

Hi,

Sorry, I made a mistake in the path, the bin directory is missing.
So you should try this on your system:

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\bin\code_aster export

(Assuming the SalomeMeca installed here in your case : C:\SM-2019-w64\SM-2019-w64-0.3)

BR,
dezsit

Offline

#6 2020-06-21 15:43:55

kartikpandya
Member
Registered: 2020-06-17
Posts: 8

Re: In windows, How to run asterstudy from terminal?

hey dezsit;

I have done below procedure to run export file from command terminal.

Kindly guide me what mistake i am doing.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Lenovo>cd C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin>cd C:\Users\Lenovo\Deskto
p\FEA\study1_Files\RunCase_9\Result-Stage_1

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>as_run export
'as_run' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>./export
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>.\export
'.\export' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>export
'export' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>

Offline

#7 2020-06-21 16:11:41

dezsit
Member
Registered: 2012-06-27
Posts: 68
Website

Re: In windows, How to run asterstudy from terminal?

Hi,,
with this you jump in, then jump out from the as_run directory:

kartikpandya wrote:

hey dezsit;

C:\Users\Lenovo>cd C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin>cd C:\Users\Lenovo\Deskto
p\FEA\study1_Files\RunCase_9\Result-Stage_1

But you would not have to, just simply use

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin\as_run export

from the directory, where your export file is placed.

So in your case you should do (if the export file is in the directory ..\Result-Stage_1):

cd C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1

then

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin\as_run export


This is not a salome/code_aster problem, it is simply how to use the command line.

Best regards,
dezsit

Offline

#8 2020-06-24 17:15:25

kartikpandya
Member
Registered: 2020-06-17
Posts: 8

Re: In windows, How to run asterstudy from terminal?

I have done below procedure to run export file from command terminal but Echo off problem is coming.

Kindly guide me what mistake i am doing.


Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Lenovo>cd C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Sta
ge_1

C:\Users\Lenovo\Desktop\FEA\study1_Files\RunCase_9\Result-Stage_1>cd C:\SM-2019-
w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin>as_run export

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin>echo OFF
Active code page: 65001

<F>_PROFILE_COPY   error during copying export to C:\Users\Lenovo\AppData\Local\
Temp\astk_Lenovo\Lenovo-Kartik-profil_astk_5346
message : The system cannot find the file specified.




-------------------------------------------------------------------------------
--
                                            cpu     system    cpu+sys    elapsed

-------------------------------------------------------------------------------
--
   Total                                   0.05       0.08       0.12       0.15

-------------------------------------------------------------------------------
--

as_run 2018.1

------------------------------------------------------------
--- DIAGNOSTIC JOB : <F>_PROFILE_COPY
------------------------------------------------------------


EXIT_CODE=4
The system cannot find the file specified.

C:\SM-2019-w64\SM-2019-w64-0.3\PRODUCTS\code_aster\bin>

Offline