07-23-2008 8:05 PM
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
07-23-2008 8:09 PM
make sure the command you are executing is the Unix command and is the Operating system populated with correct OS.
07-23-2008 8:12 PM
Thanks for reply,
I checked my OS is selected as "HP-UX".
And script contains UNIX commands.
Regards
07-23-2008 8:27 PM
07-23-2008 8:32 PM
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[].
07-23-2008 9:38 PM
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
10-21-2008 6:23 PM
04-27-2010 7:19 AM
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
10-21-2008 6:28 PM
Umesh - please do not include a comment when closing a large number of threads - it just brings old topics to the top.
Rob
10-21-2008 6:34 PM
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
10-21-2008 6:48 PM
The comment field is not mandatory, or assign 10 points to the best answer (that will close it as well).
Cheers,
Julius