Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute a shell script from an IUA

Status
Not open for further replies.

matt22dsweet

Automotive
May 12, 2003
8
FR
Hi all,

Does anyone know if it's possible?
Thanks
 
Replies continue below

Recommended for you

Hello,
Yes, it's possible. BUT I'm afraid You need fortran or C to do it.
You need to call fortran/C routine that executes Your shell script.
I have done 4.1.2 that but I don't have that code left..
There was some issues with signals in those days.

Regards TPale
 
subroutine sample
c
c ****************************************
c * This subroutine calls a UNIX script *
c ****************************************
c
call system('ksh $HOME/plot_tif')
c
return
end


I hope this helps.

Jackie
 
Thank you for your answers.
Jackie, I tried to create a load module with your subroutine sample, but I get an error message in IUA function: load module cannot be loaded.

I've been using f77 to compile the .f file, and the "shared" command to generate the load module.
I also set the catia.iuamodule_usr to the right directory.

If you have an idea, let me know
Regards
 
To compile the Fortran program I used Fortran 90, XLF Fortran 5.1.1.1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top