Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SM69-Can't exec external program (Exec format error)

Former Member
0 Kudos

Hi All,

I am executing UNIX script on HP-UX system via SM69.

But getting following error:

u201CCan't exec external program (Exec format error)

External program terminated with exit code 1u201D

Also getting same error with FM-SXPG_COMMAND_EXECUTE & SXPG_COMMAND_EXECUTE

Can any one guide what is the cause of error.

Any help will be appreciated.

Regards

10 REPLIES 10

former_member156446
Active Contributor
0 Kudos

make sure the command you are executing is the Unix command and is the Operating system populated with correct OS.

0 Kudos

Thanks for reply,

I checked my OS is selected as "HP-UX".

And script contains UNIX commands.

Regards

0 Kudos

what is the unix command you are using ?

0 Kudos

Check the Sample program. You can test or check the Unix commands using the below program.

You can use the commands Like LS to list all the files.

REPORT ZUNIX line-size 400
                no standard page heading.
 
 
data: unixcom like   rlgrap-filename.   
"7 full perimission to read
"7 full permission to change
"7 full permission to delete

unixcom = 'CHMOD 777 fillfullpath'.
 
data: begin of tabl occurs 500,
        line(400),
      end of tabl.
 
data: lines type i.
 
 
*----------------------------------------------------------------------
 
start-of-selection.
  refresh tabl.
 
  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].

0 Kudos

I tested above program. but it is not giving me any error.

But also it is showing nothing to me when i execute the following lines in SE38.

LOOP AT tabl.
 WRITE:/ tabl-line.
ENDLOOP.

Regards

Former Member
0 Kudos

closed

0 Kudos

Hi Umesh

How did u solved the above OS command execution issue.

I am also trying to change the file permissions using os command execution

using

call 'SYSTEM' id 'COMMAND' field

But nothing happening and return code is sy-subrc=0.

Any help ?

Regards

sateesh

Former Member
0 Kudos

Umesh - please do not include a comment when closing a large number of threads - it just brings old topics to the top.

Rob

0 Kudos

Hi Ron,

But how to close the thread, without any comment it's not allowing me to close the thread???

Please suggest any way.

I still have 40 threads open and i have to close them.

Without closing SDN not allowing me to open new thread.

Regards

0 Kudos

The comment field is not mandatory, or assign 10 points to the best answer (that will close it as well).

Cheers,

Julius