External command like SM69 in CE 7.2

Hello,
in CE 7.2 is there any possibilities to setup an external command (script unix) like I'd can on a ABAP system with SM69 transaction?
thank you very much

what you really want?

Similar Messages

  • External Command in SM69

    Hi guys,
    i have created command zcmd in SM69 to run a .BAT file for encryption.
    How to set the "operating system command" and "Parameters for operating system command" ?
    Any example will be appreciated greatly.

    Hi,
    i usualy use FM  'SXPG_COMMAND_EXECUTE' to execute sm69 comands.
    Here is and example for 'rm' comand (delete):
    I had created a external comand in sm69 , named Z_DELETE with operating system HP-UX, type customer and Operating System command 'rm'.
    Then in my report, i executed FM this way:
    data: PARAM LIKE SXPGCOLIST-PARAMETERS.
    param = '//dir1/dir2/file.txt'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                COMMANDNAME                   = 'Z_DELETE'
            OPERATINGSYSTEM               = SY-OPSYS
            TARGETSYSTEM                  = SY-HOST
            STDOUT                        = 'X'
            STDERR                        = 'X'
            TERMINATIONWAIT               = 'X'
            TRACE                         = ' '
              ADDITIONAL_PARAMETERS         = PARAM
           IMPORTING
                STATUS                        = STATUS
           TABLES
                EXEC_PROTOCOL                 = RESULTADO
           EXCEPTIONS
                NO_PERMISSION                 = 1
                COMMAND_NOT_FOUND             = 2
                PARAMETERS_TOO_LONG           = 3
                SECURITY_RISK                 = 4
                WRONG_CHECK_CALL_INTERFACE    = 5
                PROGRAM_START_ERROR           = 6
                PROGRAM_TERMINATION_ERROR     = 7
                X_ERROR                       = 8
                PARAMETER_EXPECTED            = 9
                TOO_MANY_PARAMETERS           = 10
                ILLEGAL_COMMAND               = 11
                WRONG_ASYNCHRONOUS_PARAMETERS = 12
                CANT_ENQ_TBTCO_ENTRY          = 13
                JOBCOUNT_GENERATION_ERROR     = 14
                OTHERS                        = 15.
    Hope this help's,
    Regards,

  • After upgrade oracle software oracle external command not responding

    Hi experts,
    I am start oracle up-gradation oracle 10.2.0.1 to 10.2.0.5,  from "p8202632_10205_LINUX.zip" patch on Redhat linex.
    When start upgrade oracle software only using "/runinstaller" after that i am not able to connect oracle external command (like "sqlplus","exp/imp").
    every oracle command not respond like...............
    [oracle@MTSNOIDA-REP2 bdump]$ sqlplus
    [oracle@MTSNOIDA-REP2 bdump]$
    please help me resolve that. i am sharing log of patch apply.............
    Oracle OLAP 10.2.0.1.0
       Oracle OLAP API 10.2.0.1.0
       OLAP SQL Scripts 10.2.0.1.0
       Oracle interMedia Client Option 10.2.0.1.0
       Oracle Database 10g interMedia Files 10.2.0.1.0
       Oracle interMedia 10.2.0.1.0
       PL/SQL Embedded Gateway 10.2.0.1.0
       Oracle XML Development Kit 10.2.0.1.0
       Oracle Text 10.2.0.1.0
       Oracle Clusterware RDBMS Files 10.2.0.1.0
       Database SQL Scripts 10.2.0.1.0
       Oracle Data Mining RDBMS Files 10.2.0.1.0
       Generic Connectivity Common Files 10.2.0.1.0
       Oracle Net Required Support Files 10.2.0.1.0
       Oracle Starter Database 10.2.0.1.0
       Sample Schema Data 10.2.0.1.0
       Oracle interMedia Locator RDBMS Files 10.2.0.1.0
       Oracle Call Interface (OCI) 10.2.0.1.0
       Oracle OLAP RDBMS Files 10.2.0.1.0
       PL/SQL 10.2.0.1.0
       Oracle Recovery Manager 10.2.0.1.0
       Oracle Database Utilities 10.2.0.1.0
       Oracle interMedia Locator 10.2.0.1.0
       XML Parser for Java 10.2.0.1.0
       Assistant Common Files 10.2.0.1.0
       Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0
       Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0
       Oracle interMedia Java Advanced Imaging 10.2.0.1.0
       SQLJ Runtime 10.2.0.1.0
       XML Parser for Oracle JVM 10.2.0.1.0
       Enterprise Manager Agent DB 10.2.0.1.0
       Enterprise Manager Baseline 10.2.0.1.0
       Oracle Enterprise Manager Console DB 10.2.0.1.0
       XDK Required Support Files 10.2.0.1.0
       Agent Required Support Files 10.2.0.1.0
       DBJAVA Required Support Files 10.2.0.1.0
       LDAP Required Support Files 10.2.0.1.0
       Precompiler Required Support Files 10.2.0.1.0
       Oracle RAC Required Support Files-HAS 10.2.0.1.0
       RDBMS Required Support Files for Instant Client 10.2.0.1.0
       RDBMS Required Support Files 10.2.0.1.0
       SQL*Plus Required Support Files 10.2.0.1.0
       SSL Required Support Files for InstantClient 10.2.0.1.0
       Installation Common Files 10.2.0.1.0
       Oracle Globalization Support 10.2.0.1.0
       Oracle Core Required Support Files 10.2.0.1.0
       Platform Required Support Files 10.2.0.1.0
       Oracle Message Gateway Common Files 10.2.0.1.0
       Enterprise Manager Agent Core 10.2.0.1.0
       Enterprise Manager Common Files 10.2.0.1.0
       Enterprise Manager Repository Core 10.2.0.1.0
       Oracle Containers for Java 10.2.0.1.0
       Enterprise Manager Repository DB 10.2.0.1.0
       Oracle LDAP administration 10.2.0.1.0
       JDBC Common Files 10.2.0.1.0
       Database Workspace Manager 10.2.0.1.0
       Oracle interMedia Annotator 10.2.0.1.0
       Enterprise Manager Minimal Integration 10.2.0.1.0
       Parser Generator Required Support Files 10.2.0.1.0
       Buildtools Common Files 10.2.0.1.0
       Oracle UIX 2.1.22.0.0
       Bali Share 1.1.18.0.0
    Deinstall in progress (Tuesday, November 19, 2013 11:02:51 PM GMT+05:30)
    ...............................................................   0% Done.
    ...............................................................  18% Done.
    ...............................................................  37% Done.
    ...............................................................  56% Done.
    ...............................................................  75% Done.
    .................                                               100% Done.
    Deinstall successful
    Installation in progress (Tuesday, November 19, 2013 11:02:51 PM GMT+05:30)
    ...............................................................  18% Done.
    ...............................................................  37% Done.
    ...............................................................  56% Done.
    ...............................................................  75% Done.
    .................................................                90% Done.
    Install successful
    Linking in progress (Tuesday, November 19, 2013 11:03:45 PM GMT+05:30)
    ..                                                               91% Done.
    Link successful
    Setup in progress (Tuesday, November 19, 2013 11:03:49 PM GMT+05:30)
    .........                                                       100% Done.
    Setup successful
    End of install phases.(Tuesday, November 19, 2013 11:03:54 PM GMT+05:30)
    Starting to execute configuration assistants
    Configuration assistant "Oracle Configuration Manager Configuration" succeeded
    WARNING:
    The following configuration scripts need to be executed as the "root" user.
    #!/bin/sh
    #Root script to run
    /u01/app/oracle/product/10.2.0/root.sh
    To execute the configuration scripts:
        1. Open a terminal window
        2. Log in as "root"
        3. Run the scripts
    The installation of Oracle Database 10g Release 2 Patch Set 4 was successful.
    Please check '/u01/app/oracle/oraInventory/logs/silentInstall2013-11-19_11-02-36PM.log' for more details.

    [oracle@MTSNOIDA-REP2 bin]$ ls -lrth
    total 7.2G
    -rwxrwxrwx 1 oracle oinstall  83K Jan  1  2000 zip
    -rwxrwxrwx 1 oracle oinstall 100K Jan  1  2000 unzip
    -rwxrwxrwx 1 oracle oinstall 2.9K Jan  1  2000 oraenv
    -rwxrwxrwx 1 oracle oinstall 2.4K Jan  1  2000 oerr
    -rwxrwxrwx 1 oracle oinstall 2.3K Jan  1  2000 gensyslib
    -rwxrwxrwx 1 oracle oinstall  14K Jan  1  2000 dbstart
    -rwxrwxrwx 1 oracle oinstall 6.5K Jan  1  2000 dbshut
    -rwxrwxrwx 1 oracle oinstall 2.4K Jan  1  2000 dbhome
    -rwxrwxrwx 1 oracle oinstall 2.8K Jan  1  2000 coraenv
    -rwxrwxrwx 1 oracle oinstall   48 Sep 25  2000 oraxml
    -rwxrwxrwx 1 oracle oinstall   48 Sep 25  2000 oraxsl
    -rwxrwxrwx 1 oracle oinstall   46 Nov  7  2000 oracg
    -rwxrwxrwx 1 oracle oinstall   45 Sep 25  2001 transx
    -rwxrwxrwx 1 oracle oinstall   59 Nov 25  2002 orapipe
    -rwxrwxrwx 1 oracle oinstall   44 Dec  4  2002 orajaxb
    -rwxrwxrwx 1 oracle oinstall 1.7K Jan 12  2004 emrepdown.sh
    -rwxrwxrwx 1 oracle oinstall  25K Jan 12  2004 emwd
    -rwxrwxrwx 1 oracle oinstall  767 Jan 12  2004 emlfail.command
    -rwxrwxrwx 1 oracle oinstall 1.2K Jan 12  2004 emdfail.command
    -rwxrwxrwx 1 oracle oinstall 1.7K Jan 12  2004 runclass
    -rwxrwxrwx 1 oracle oinstall  762 Jan 12  2004 xsql
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmus
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmupm
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmocat
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmo.0
    -rws--x--- 1 root   oinstall    0 May 19  2004 nmo
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmei
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 nmb.0
    -rws--x--- 1 root   oinstall    0 May 19  2004 nmb
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 emtgtctl2
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 emdctl
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 emagent
    -rwxrwxrwx 1 oracle oinstall    0 May 19  2004 e2eme
    -rwxrwxrwx 1 oracle oinstall  39K Sep  2  2004 xmlwf
    -rwxrwxrwx 1 oracle oinstall 5.9K Sep 25  2004 repo_mig.template
    -rwxrwxrwx 1 oracle oinstall  11K Oct 13  2004 DBConsole.pm
    -rwxrwxrwx 1 oracle oinstall   82 Oct 15  2004 commonenv.bat.template
    -rwxrwxrwx 1 oracle oinstall 3.1K Apr  5  2005 asmcmd
    -rwxrwxrwx 1 oracle oinstall 2.8K May 12  2005 emrepdown.pl
    -rwxrwxrwx 1 oracle oinstall 3.4K May 12  2005 emdrollogs.pl
    -rwxrwxrwx 1 oracle oinstall 3.9K May 12  2005 emdlctl.template
    -rwxrwxrwx 1 oracle oinstall    0 May 12  2005 emtgtctl20
    -rwxrwxrwx 1 oracle oinstall 210K May 21  2005 asmcmdcore
    -rwxrwxrwx 1 oracle oinstall 1.1K May 23  2005 processDef.pl
    -rwxrwxrwx 1 oracle oinstall 3.2K Jun  7  2005 symfind
    -rwxrwxrwx 1 oracle oinstall 1.2K Jun 13  2005 linkshlib
    -rwxrwxrwx 1 oracle oinstall 4.8K Jun 13  2005 genclntst
    -rwxrwxrwx 1 oracle oinstall  153 Jun 13  2005 echodo
    -rwxrwxrwx 1 oracle oinstall 5.6K Jun 16  2005 genagtsh
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 tkprofO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 sqlplusO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 sqlldrO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 sbttestO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 orapwdO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 oklist0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 okinit0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 okdstry0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 nidO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 maxmemO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 mapsga0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 kfod0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 impO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 impdpO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 hsotsO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 hsdepxaO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 hsallociO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 extprocO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 expO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 expdpO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 dumpsga0
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 dbvO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 dbfsizeO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 cursizeO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 ctxloadO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 ctxlcO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 csscanO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 agtctlO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 wrapO
    -rwxrwxrwx 1 oracle oinstall    0 Jun 22  2005 tstshmO
    -rwxrwxrwx 1 oracle oinstall 1.9K Aug  9  2005 agentok.sh
    -rwxrwxrwx 1 oracle oinstall  11K Aug 15  2005 emctl.template
    -rwxrwxrwx 1 oracle oinstall 2.2K Aug 26  2005 sAgentUtils.pm
    -rwxrwxrwx 1 oracle oinstall    0 Aug 31  2005 netca_inst.sh
    -rwxrwxrwx 1 oracle oinstall 353K Sep 11  2005 emagtm0
    -rwxrwxrwx 1 oracle oinstall 759K Sep 11  2005 nmccollector0
    -rwxrwxrwx 1 oracle oinstall  52K Oct 16  2005 proxyserv.bin
    -rwxrwxrwx 1 oracle oinstall  52K Oct 20  2005 extjoboO
    -rwxrwxrwx 1 oracle oinstall  52K Oct 20  2005 extjobO
    -rwxrwxrwx 1 oracle oinstall 1.1M Oct 20  2005 racgeutO
    -rwxrwxrwx 1 oracle oinstall 1.2M Oct 20  2005 racgmainO
    -rwxrwxrwx 1 oracle oinstall 615K Oct 20  2005 oclsmon.bin
    -rwxrwxrwx 1 oracle oinstall  30K Oct 20  2005 extproc32O
    -rwxrwxrwx 1 oracle oinstall  64K Oct 20  2005 geneziO
    -rwxrwxrwx 1 oracle oinstall  691 Oct 22  2005 proxyserv
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 racgmdbO
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 racgimonO
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 oifcfg0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 trcroute0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 tnsping0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 tnslsnr0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 lsnrctl0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 trcldr
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 grdcscan
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 kfodO
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmus0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmupm0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmocat0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmo0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmei0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 nmb0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 emdctl0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 emagent0
    -rwxrwxrwx 1 oracle oinstall    0 Oct 22  2005 e2eme0
    -rwxrwxrwx 1 oracle oinstall 8.3K Jan 19  2006 genclntsh
    -rwxrwxrwx 1 oracle oinstall  485 Aug  4  2006 makeserverwlt
    -rwxrwxrwx 1 oracle oinstall  485 Aug  4  2006 makerootca.sh
    -rwxrwxrwx 1 oracle oinstall 3.5K Feb 20  2007 genoccish
    -rwxrwxrwx 1 oracle oinstall  504 Mar 30  2007 commonenv.template
    -rwxrwxrwx 1 oracle oinstall  16K Apr 17  2007 IASConsole.pm
    -rwxrwxrwx 1 oracle oinstall 1.2K May  9  2007 emtgtctl.template
    -rwxrwxrwx 1 oracle oinstall 6.9K Dec 24  2008 aqxmlctl.pl
    -rwxrwxrwx 1 oracle oinstall 9.5K Apr 29  2009 genorasdksh
    -rwxrwxrwx 1 oracle oinstall  23K May 12  2009 EMDeploy.pm
    -rwxrwxrwx 1 oracle oinstall  24K Jun 14  2009 EMAgent.pm
    -rwxrwxrwx 1 oracle oinstall 9.0K Dec  7  2009 relink
    -rwxrwxrwx 1 oracle oinstall  56K Feb 10  2010 emwd.pl
    -rwxrwxrwx 1 oracle oinstall 1.9K Feb 18  2010 racgwrap.sbs
    -rwxrwxrwx 1 oracle oinstall 1.9M Apr  8  2010 xml
    -rwxrwxrwx 1 oracle oinstall 2.3M Apr  8  2010 xmlcg
    -rwxrwxrwx 1 oracle oinstall 1.6M Apr  8  2010 schema
    -rwxrwxrwx 1 oracle oinstall 1.7M Apr  8  2010 xvm
    -rwxrwxrwx 1 oracle oinstall 1.9M Apr  8  2010 xsl
    -rwxrwxrwx 1 oracle oinstall 1.8K Apr  8  2010 pupbld
    -rwxrwxrwx 1 oracle oinstall 2.1K Apr  8  2010 helpins
    -rwxrwxrwx 1 oracle oinstall 148K Apr 12  2010 mkwallet
    -rwxrwxrwx 1 oracle oinstall 4.8K Apr 12  2010 gennttab
    -rwxrwxrwx 1 oracle oinstall 2.9K Apr 12  2010 gennfgt
    -rwxrwxrwx 1 oracle oinstall  13K Apr 12  2010 adapters
    -rwxrwxrwx 1 oracle oinstall 793K Apr 13  2010 nmccollector
    -rwxrwxrwx 1 oracle oinstall  50K Apr 13  2010 nmcbufp
    -rwxrwxrwx 1 oracle oinstall 345K Apr 13  2010 csscan
    -rwxrwxrwx 1 oracle oinstall 768K Apr 13  2010 ocrdump.bin
    -rwxrwxrwx 1 oracle oinstall 828K Apr 13  2010 ocrconfig.bin
    -rwxrwxrwx 1 oracle oinstall 740K Apr 13  2010 ocrcheck.bin
    -rwxrwxrwx 1 oracle oinstall 102K Apr 13  2010 rawutl
    -rwxrwxrwx 1 oracle oinstall  12K Apr 13  2010 osdbagrp
    -rwxrwxrwx 1 oracle oinstall 705K Apr 13  2010 gsd
    -rwxrwxrwx 1 oracle oinstall  17K Apr 13  2010 srvmspawn
    -rwxrwxrwx 1 oracle oinstall 1.9M Apr 13  2010 ocssd.bin
    -rwxrwxrwx 1 oracle oinstall 1.4M Apr 13  2010 racgeut
    -rwxrwxrwx 1 oracle oinstall 1.6M Apr 13  2010 racgmain
    -rwxrwxrwx 1 oracle oinstall 811K Apr 13  2010 clscfg.bin
    -rwxrwxrwx 1 oracle oinstall 712K Apr 13  2010 clsid.bin
    -rwxrwxrwx 1 oracle oinstall 734K Apr 13  2010 oclsvmon.bin
    -rwxrwxrwx 1 oracle oinstall 735K Apr 13  2010 oclsomon.bin
    -rwxrwxrwx 1 oracle oinstall 3.3M Apr 13  2010 crsctl.bin
    -rwxrwxrwx 1 oracle oinstall 935K Apr 13  2010 clsfmt.bin
    -rwxrwxrwx 1 oracle oinstall 1.2M Apr 14  2010 lmsgen
    -rwxrwxrwx 1 oracle oinstall 1.2M Apr 14  2010 lxegen
    -rwxrwxrwx 1 oracle oinstall 2.6M Apr 14  2010 lxinst
    -rwxrwxrwx 1 oracle oinstall 778K Apr 14  2010 lxchknlb
    -rwxrwxrwx 1 oracle oinstall 1.4M Apr 14  2010 lcsscan
    -rwxrwxrwx 1 oracle oinstall 349K Apr 19  2010 genksms
    -rwxrwxrwx 1 oracle oinstall  11K Apr 19  2010 osh
    -rwxrwxrwx 1 oracle oinstall  15K Apr 19  2010 fmputlhp
    -rwxrwxrwx 1 oracle oinstall 921K Apr 19  2010 fmputl
    -rwxrwxrwx 1 oracle oinstall  20K Apr 19  2010 sysresv
    -r-sr-s--- 1 root   oinstall  14K Apr 19  2010 oradism
    -rwxrwxrwx 1 oracle oinstall  29K Apr 19  2010 loadpsp
    -rwxrwxrwx 1 oracle oinstall 394K Apr 19  2010 kgmgr
    -rwxrwxrwx 1 oracle oinstall 857K Apr 19  2010 extjobo
    -rwxrwxrwx 1 oracle oinstall  66K Apr 19  2010 genezi
    -rwsr-x--- 1 root   oinstall 857K Apr 19  2010 extjob
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tg4pwdO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oradismO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 hsodbcO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oracleO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 kfod
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 wrap
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tstshm
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 sbttest
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 orapwd
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oracle
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 nid
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 maxmem
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 mapsga
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 hsots
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 hsodbc
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 hsdepxa
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 hsalloci
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 extproc
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dumpsga
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dgmgrlO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dgmgrl
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dbv
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dbfsize
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 cursize
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 cfo
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 agtctl
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 sqlplus
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 racgmdb
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 racgimon
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oifcfg
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapsearch
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapmodifymt
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapmodify
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapmoddn
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapdelete
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapcompare
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapaddmt
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ldapadd
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 dsml2ldif
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tnnfg.dbl
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oklist
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 okinit
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 okdstry
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 trcroute
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tnsping
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tnslsnr
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 lsnrctl
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 proc
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ctxload
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ctxlc
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 ctxkbtc
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 rmanO
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 rman
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tkprof
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 tg4pwd
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 sqlldr
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 impdp
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 imp
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 expdp
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 exp
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 kgpmon
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 oratclsh
    -rwxrwxrwx 1 oracle oinstall    0 Apr 19  2010 emagtm
    -rwxrwxrwx 1 oracle oinstall 1.2K Oct 21  2011 olsoidsync.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.2K Oct 21  2011 olsadmintool.ouibak
    -rwxrwxrwx 1 oracle oinstall 3.1K Oct 21  2011 umu.ouibak
    -rwxrwxrwx 1 oracle oinstall 5.3K Oct 21  2011 owm.ouibak
    lrwxrwxrwx 1 oracle oinstall   52 Oct 21  2011 lbuilder -> /u01/app/oracle/product/10.2.0/nls/lbuilder/lbuilder
    -rwxrwxrwx 1 oracle oinstall 3.2K Oct 21  2011 orapki.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.7K Oct 21  2011 ocrdump0
    -rwxrwxrwx 1 oracle oinstall  574 Oct 21  2011 ocrconfig0
    -rwxrwxrwx 1 oracle oinstall 1.7K Oct 21  2011 ocrcheck0
    -rwxrwxrwx 1 oracle oinstall 1.7K Oct 21  2011 oclsmon
    -rwxrwxrwx 1 oracle oinstall 2.2K Oct 21  2011 mkstore.ouibak
    -rwxrwxrwx 1 oracle oinstall  11K Oct 21  2011 isqlplusctl.pl.ouibak
    -rwxrwxrwx 1 oracle oinstall 3.2K Oct 21  2011 isqlplusctl.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.4K Oct 21  2011 statusnc.ouibak
    -rwxrwxrwx 1 oracle oinstall  509 Oct 21  2011 ojvmjava.ouibak
    -rwxrwxrwx 1 oracle oinstall 2.1K Oct 21  2011 oidprovtool.ouibak
    -rwxrwxrwx 1 oracle oinstall 2.0K Oct 21  2011 oidadmin
    -rwxrwxrwx 1 oracle oinstall 1.4K Oct 21  2011 ncomp.ouibak
    -rwxrwxrwx 1 oracle oinstall  554 Oct 21  2011 loadjava.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.9K Oct 21  2011 ldifmigrator.ouibak
    -rwxrwxrwx 1 oracle oinstall  513 Oct 21  2011 dropjava.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.4K Oct 21  2011 deploync.ouibak
    -rwxrwxrwx 1 oracle oinstall 3.0K Oct 21  2011 trcasst.ouibak
    -rwxrwxrwx 1 oracle oinstall 5.3K Oct 21  2011 rconfig.ouibak
    -rwxrwxrwx 1 oracle oinstall 6.1K Oct 21  2011 netmgr.ouibak
    -rwxrwxrwx 1 oracle oinstall 6.3K Oct 21  2011 netca.ouibak
    -rwxrwxrwx 1 oracle oinstall 5.9K Oct 21  2011 dbua.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.6K Oct 21  2011 aqxmlctl.ouibak
    -rwxrwxrwx 1 oracle oinstall 2.1K Oct 21  2011 trcsess
    -rwxrwxrwx 1 oracle oinstall  935 Oct 21  2011 schemasync.ouibak
    -rwxrwxrwx 1 oracle oinstall 1.4K Oct 21  2011 racgwrap.ouibak
    -rwxrwxrwx 1 oracle oinstall    0 Oct 21  2011 racgons
    -rwxrwxrwx 1 oracle oinstall 2.2K Oct 21  2011 oidca.ouibak
    -rwxrwxrwx 1 oracle oinstall  995 Oct 21  2011 odisrvreg
    -rwxrwxrwx 1 oracle oinstall  324 Oct 21  2011 extusrupgrade.ouibak
    -rwxrwxrwx 1 oracle oinstall 419K Oct 21  2011 kgmgrO
    -rwxrwxrwx 1 oracle oinstall  16K Oct 21  2011 loadpspO
    -rwxrwxrwx 1 oracle oinstall 7.2K Oct 21  2011 osdbagrp0
    -rwxrwxrwx 1 oracle oinstall  69K Oct 21  2011 extproc32
    -rwxrwxrwx 1 oracle oinstall  34K Oct 21  2011 sslsetup.ouibak
    -rwxrwxrwx 1 oracle oinstall 8.6K Oct 21  2011 emutil.ouibak
    -rwxrwxrwx 1 oracle oinstall  84K Oct 21  2011 emctl.pl.ouibak
    -rwxrwxrwx 1 oracle oinstall  12K Oct 21  2011 emctl.ouibak
    -rwxrwxrwx 1 oracle oinstall  29K Oct 21  2011 EmctlCommon.pm.ouibak
    -rwxrwxrwx 1 oracle oinstall 6.1K Oct 21  2011 repo_mig.ouibak
    -rwxrwxrwx 1 oracle oinstall  898 Oct 21  2011 emtgtctl.ouibak
    -rwxrwxrwx 1 oracle oinstall 5.3K Oct 21  2011 dbca.ouibak
    -rwxrwxrwx 1 oracle oinstall  399 Oct 21  2011 commonenv.ouibak
    -rwxrwxrwx 1 oracle oinstall 2.1K Nov 19 23:03 oidprovtool
    -rwxrwxrwx 1 oracle oinstall 1.9K Nov 19 23:03 ldifmigrator
    -rw-r--r-- 1 root   root     7.2G Nov 19 23:03 pinglogs.txt
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 bndlchk
    -rwxrwxrwx 1 oracle oinstall 1.2K Nov 19 23:03 olsoidsync
    -rwxrwxrwx 1 oracle oinstall 1.2K Nov 19 23:03 olsadmintool
    -rwxrwxrwx 1 oracle oinstall 1.6K Nov 19 23:03 aqxmlctl
    -rwxrwxrwx 1 oracle oinstall  916 Nov 19 23:03 ott
    -rwxrwxrwx 1 oracle oinstall 3.0K Nov 19 23:03 trcasst
    -rwxrwxrwx 1 oracle oinstall 5.3K Nov 19 23:03 owm
    -rwxrwxrwx 1 oracle oinstall 3.2K Nov 19 23:03 orapki
    -rwxrwxrwx 1 oracle oinstall 6.1K Nov 19 23:03 netmgr
    -rwxrwxrwx 1 oracle oinstall  105 Nov 19 23:03 netca_deinst.sh
    -rwxrwxrwx 1 oracle oinstall 6.3K Nov 19 23:03 netca
    -rwxrwxrwx 1 oracle oinstall 2.2K Nov 19 23:03 mkstore
    -rwxrwxrwx 1 oracle oinstall  11K Nov 19 23:03 isqlplusctl.pl
    -rwxrwxrwx 1 oracle oinstall 3.2K Nov 19 23:03 isqlplusctl
    -rwxrwxrwx 1 oracle oinstall  935 Nov 19 23:03 schemasync
    -rwxrwxrwx 1 oracle oinstall 2.2K Nov 19 23:03 oidca
    -rwxrwxrwx 1 oracle oinstall 1.3K Nov 19 23:03 statusnc
    -rwxrwxrwx 1 oracle oinstall 4.5K Nov 19 23:03 srvconfig
    -rwxrwxrwx 1 oracle oinstall 1.9K Nov 19 23:03 racgwrap
    -rwxrwxrwx 1 oracle oinstall 1.5K Nov 19 23:03 ojvmjava
    -rwxrwxrwx 1 oracle oinstall 1.4K Nov 19 23:03 ncomp
    -rwxrwxrwx 1 oracle oinstall 1.4K Nov 19 23:03 loadjava
    -rwxrwxrwx 1 oracle oinstall 1.2K Nov 19 23:03 dropjava
    -rwxrwxrwx 1 oracle oinstall 1.3K Nov 19 23:03 deploync
    -rwxrwxrwx 1 oracle oinstall  736 Nov 19 23:03 cluvfy
    -rwxrwxrwx 1 oracle oinstall 6.4K Nov 19 23:03 srvctl
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 ocssd
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 ocrdump
    -rwxrwxrwx 1 oracle oinstall  574 Nov 19 23:03 ocrconfig
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 ocrcheck
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 oclsvmon
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 oclsomon
    -rwxrwxrwx 1 oracle oinstall  23K Nov 19 23:03 localconfig
    -rwxrwxrwx 1 oracle oinstall 4.9K Nov 19 23:03 gsd.sh
    -rwxrwxrwx 1 oracle oinstall 4.7K Nov 19 23:03 gsdctl
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 crsctl
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 clsid
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 clsfmt
    -rwxrwxrwx 1 oracle oinstall 2.4K Nov 19 23:03 clscfg
    -rwxrwxrwx 1 oracle oinstall 3.1K Nov 19 23:03 umu
    -rwxrwxrwx 1 oracle oinstall 5.3K Nov 19 23:03 rconfig
    -rwxrwxrwx 1 oracle oinstall  324 Nov 19 23:03 extusrupgrade
    -rwxrwxrwx 1 oracle oinstall 7.2K Nov 19 23:03 dbua
    -rwxrwxrwx 1 oracle oinstall 6.1K Nov 19 23:03 repo_mig
    -rwxrwxrwx 1 oracle oinstall  31K Nov 19 23:03 EmctlCommon.pm
    -rwxrwxrwx 1 oracle oinstall  474 Nov 19 23:03 sslsetup
    -rwxrwxrwx 1 oracle oinstall 2.9K Nov 19 23:03 fix_4525303.pl
    -rwxrwxrwx 1 oracle oinstall 7.4K Nov 19 23:03 emutil
    -rwxrwxrwx 1 oracle oinstall  89K Nov 19 23:03 emctl.pl
    -rwxrwxrwx 1 oracle oinstall  11K Nov 19 23:03 emctl
    -rwxrwxrwx 1 oracle oinstall 3.5K Nov 19 23:03 targetdeploy.pl
    -rwxrwxrwx 1 oracle oinstall 2.9K Nov 19 23:03 onsctl
    -rwxrwxrwx 1 oracle oinstall 668K Nov 19 23:03 ldapbind
    -rwxrwxrwx 1 oracle oinstall 1.2K Nov 19 23:03 emtgtctl
    -rwxrwxrwx 1 oracle oinstall 1.7K Nov 19 23:03 emca
    -rwxrwxrwx 1 oracle oinstall 3.7K Nov 19 23:03 emagentdeploy.pl
    -rwxrwxrwx 1 oracle oinstall 5.7K Nov 19 23:03 dbca
    -rwxrwxrwx 1 oracle oinstall  531 Nov 19 23:03 commonenv
    [oracle@MTSNOIDA-REP2 bin]$ pwd
    /u01/app/oracle/product/10.2.0/bin

  • Running the external programs from SM69 t-code and RSBDCOS0 report

    Hi All,
      I am trying to execute the external commands from SM69 and RSBDCOS0. It's throwing the below error:
    26.10.2009 17:26:49 Job started                                                                                00           516
    26.10.2009 17:26:50 Step 001 started                                                                                BT           611
    26.10.2009 17:26:50 External command: ZARCHIVELOG_COPY                                                                BT           630
    26.10.2009 17:26:50 Related parameter:                                                                                BT           613
    26.10.2009 17:26:50 Ext. prog.:   > Function: BtcXpgPanicCan't exec external program (No such file or directory)      BT      606
    26.10.2009 17:26:50 Ext. prog.: External program terminated with exit code 1                                          BT           606
    26.10.2009 17:26:50 Ext. prog.: SAPXPG started on <hostname>_<SID>_00, Process ID 1632, Process Number 12   BT           606
    26.10.2009 17:26:50 External program was cancelled                                                                    BT           614
    26.10.2009 17:26:50 Job cancelled                                                                                00           518
    <SID>adm has full authorization on sapxpg.
    Please let me know what might be the wrong.
    Regards,
    Sridhar

    Dear Markus,
       The dev_xpg file contains the below information
    Trace file of external program (trace level 3)
    < Function: BtcTrcInit> Function: BtcXpgStart  External program: mv
      Process id: 29450
      Parent process id: 29449
      Rearrange StdErr to be collected in memory
      Rearrange StdOut to be collected in memory
    In t-code sm21 dont have any thing.
    Regards,
    sridhar

  • External command not working.

    Hi,
    I have written a batch program which copies files from SAP Application Server(4.6B) to external machine in LAN. This machine is mapped on SAP App Server. The contents of this file are:-
    @ECHO OFF
    FOR /f "delims=" %%a in ('date /t') do set DATE=%%a
    SET CUR-DATE=%DATE:~4,10%
    XCOPY H:\source
    ust-ght3dxp0097\fullc /D:%CUR-DATE%
    XCOPY H:\source Z:\ /D:%CUR-DATE%
    where ust-ght3dxp0097 is the external machine and Z is the mapped drive on SAP App server.
    Now this batch file works fine when executed from commandline. I want to execute this from my ABAP program.
    Hence I created an external command from SM69 as follows:
    Operating system command
              C:\CopyFilesCreatedToday.bat
    This batch file is place in C drive of SAP Application Server.
    When I try to execute this external command from SM49 it gives the following error.
    Invalid Drive Specification
    0 files copied
    Invalid Drive Specification
    0 files copied
    Can somebody help me with this error.

    > Hi Peter,
    >
    > The critical point maybe is this:
    >
    > "Operating system command
    > C:\CopyFilesCreatedToday.bat"
    >
    > Dont't use the local drive C:! Use a network-drive
    > instead.
    >
    > BR
    > Michael
    Hi Michael,
    Are you family of Jack Bauer? Just kidding sorry for the inconvenience
    Stephan

  • Using a Logical File (FILE) in an External Command (SM69)

    I have an external command defined in SM69 that runs a script on the application server. The command is called from within an ABAP program with SXPG_CALL_SYSTEM. It currently works as it should.
    The issue is that the external command is defined as:
    sh /absolute/path/to/script/file
    I have been told to instead set up a logical file in FILE so that the command would be:
    sh <MY_SCRIPT_LOGICAL_NAME>
    I've gone into FILE and defined MY_SCRIPT_LOGICAL_NAME as:
    Logical File = MY_SCRIPT_LOGICAL_NAME
    Name = Descriptive Text
    Physical File = <SYSID>actualname.scr
    Data Format = ASC
    App Area = HR
    Logical Path = SCRIPT_PATH
    where SCRIPT_PATH is also defined in FILE with the physical path of:
    /iface/<SYSID>/outboundhr/scripts/<FILENAME>
    So when I try executing the command with SM49 as defined as:
    sh <MY_SCRIPT_LOGICAL_NAME>
    I just get Exception raised: OTHERS
    If I define the command as:
    ls <MY_SCRIPT_LOGICAL_NAME>
    I get the same thing, Exception raised: OTHERS
    I'm guessing that the logical file name isn't getting translated. Does anyone know if it should in this instance? Is anyone using a logical file as part of an external command?
    Thanks much.

    I think you must use FM FILE_GET_NAME to translate the logical file name to a physical one before executing the command.
    Like:
    DATA: physical_file_name(60),
          my_script_logical_name(60) VALUE 'CLASSIFICATION',
          format(3).
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
        logical_filename = my_script_logical_name
      IMPORTING
        file_format      = format
        file_name        = physical_file_name
      EXCEPTIONS
        file_not_found   = 1
        OTHERS           = 2.
    Rob
    Message was edited by: Rob Burbank

  • SM69 - external command

    Hi,
    My developer is asking for a unix "mv" command to move files from one location to another (after successful processing of that file).  The "mv" command will be coded in the ABAP.
    I'm using SM69 to create a "ZMV" external command so that it can be called within ABAP.
    Now, I would like to control the location of where the files are moved to. 
    Does anyone know how I can use the "Parameters for operating system command" & "Additional parameters" fields in SM69 to control the location?
    Or is there another approach to tackle this issue?
    Thanks in advance.

    Hello Sisab,
    It is simple. Keep parameters blank if you don't want any special parameters lie <i> etc. However addtional parameters is important.
    Basically the syntax of move command would be
    mv <original path> <new path>.
    This part <original path> <new path> needs to be specified into addtional parameters.
    However you to give complete path.
    This would do the job for you.
    With Regards.
    Ruchit.

  • Linux - Execute external Command (SM69, SXPG_COMMAND_EXECUTE)

    Hi experts,
    I've defined in SM69 a external command for our Linux-Host.
    This command I execute with Function Module SXPG_COMMAND_EXECUTE.
    However, I always get the exception 2 - Command not found.
    The test in Sm69 works fine.
    We are also having HP-UX Hosts and on this the command works fine.
    Also other commands works fine on Linux-Host.
    The command is: ls -l (so command = ls, command parameter = -l)
    Does anyone know the reason for this?
    Kind regards

    Do you really need it ?
    could you use kernel function ?  or you really need the SM69 ?
    looks how to use the kernel function of OS command : abap - report to execute os-commands - Code Gallery - SCN Wiki
    regards
    Fred

  • How to execute a external command ?

    Hi all ,
            I would like to transfer the oracle data to sql2000 , my idea is :
               - 1. write a external java program ( call trans.jar ) on oracle db server machine ( call sql2000 server to invoke the dtsrun.exe )
               - 2. create a dts package on sql2000 server .
               - 3. write an abap program in sap ( when the end-user execute this program , the trans.jar will call the dts package on sql2000 server ) .
            I know that we can use sm69 to define the external program , but i don't know how to use abap/4 to invoke this external program ? has someone can tell me how to do ?
    Thanks a lot !
    Best Regards,
    Carlos

    You can use the function module <b>SXPG_COMMAND_EXECUTE</b> to execute external commands
    Please find my sample code for it.
    *&      Form  TRIGGER_EXT_OS_COMMAND
    *       text
    *      -->P_F_UNIX  text
    form TRIGGER_EXT_OS_COMMAND using P_F_UNIX type SXPGCOLIST-PARAMETERS.
      data: begin of IEPCOL occurs 100.
              include structure BTCXPM.
      data: end of IEPCOL.
    BTCXPM = Log message from external program to calling program
      data: W_STATUS like EXTCMDEXEX-STATUS.
    * EXTCMDEXEX = Parameters of SXPG_COMMAND_EXECUTE
      data: W_HOST like RFCDISPLAY-RFCHOST.
    * RFCDISPLAY = Display structure for RFCDES maintenance          "M5
    * The External operating system command ZECOM is created * using thetransaction SM69. For any changes to the
    * command goto SM69 and for executing and testing use
    * the transaction SM49.
      W_HOST = SY-HOST.
      call function 'SXPG_COMMAND_EXECUTE'
        exporting
          COMMANDNAME                   = 'ZECOM'
          ADDITIONAL_PARAMETERS         = P_F_UNIX
          OPERATINGSYSTEM               = SY-OPSYS
          TARGETSYSTEM                  = W_HOST
          STDOUT                        = 'X'
          STDERR                        = 'X'
          TERMINATIONWAIT               = 'X'
        importing
          STATUS                        = W_STATUS
        tables
          EXEC_PROTOCOL                 = IEPCOL
        exceptions
          NO_PERMISSION                 = 1
          COMMAND_NOT_FOUND             = 2
          PARAMETERS_TOO_LONG           = 3
          SECURITY_RISK                 = 4
          WRONG_CHECK_CALL_INTERFACE    = 5
          PROGRAM_START_ERROR           = 6
          PROGRAM_TERMINATION_ERROR     = 7
          X_ERROR                       = 8
          PARAMETER_EXPECTED            = 9
          TOO_MANY_PARAMETERS           = 10
          ILLEGAL_COMMAND               = 11
          WRONG_ASYNCHRONOUS_PARAMETERS = 12
          CANT_ENQ_TBTCO_ENTRY          = 13
          JOBCOUNT_GENERATION_ERROR     = 14
          others                        = 15.
      if SY-SUBRC <> 0.
        case SY-SUBRC.
          when 1.
            message E138(ZSM) with 'No permission to Execute ' 'External O/S command'.
          when 2.
            message E138(ZSM) with 'External O/S Command not found'.
          when 3.
            message E138(ZSM) with 'Parameters too long.' 'Exceeds the limit of 128 characters'.
          when 4.
            message E138(ZSM) with 'Security risk. ' 'The Command contains impermissible characters'.
          when 5.
            message E138(ZSM) with 'Wrong check call interface.  Check the command.'.
          when 6.
            message E138(ZSM) with 'Error while starting the External O/S Command'.
          when 7.
            message E138(ZSM) with 'Error getting the return ' 'code of the External O/S command'.
          when 8.
            message E138(ZSM) with 'Unknown error'.
          when 9.
            message E138(ZSM) with 'Some mandatory parameter is not supplied'.
          when 10.
            message E138(ZSM) with 'Too many parameters. ' 'Check the additional parameter'.
          when 11.
            message E138(ZSM) with 'Illegal command'.
          when others.
            message E138(ZSM) with 'Unknown error'.
        endcase.
      else.
        if W_STATUS = 'O'.
          if UNIX_FILE cs '.ES'.
            message S138(ZSM) with 'File FTP Successfull..!'.
    *        External O/S command to' 'FTP the above file to' 'ES FTP server succesfully!' P_F_UNIX.
          endif.
        else.
          message I138(ZSM) with 'Ext O/S command to FTP the ' 'abv file to ext UNIX system not executed due to:'.
          loop at IEPCOL.
            write:/ SY-TABIX, IEPCOL-MESSAGE,255 ' '.
          endloop.
        endif.
      endif.
    endform.                    " TRIGGER_EXT_OS_COMMAND
    Regards
    Gopi

  • Executing external command and program in background

    Hi,
    how to execute external command and external program in background.
    please provide me some tips on the same.
    while creating external command, what is the significance of "operating system command" and "parameters for operating system command".
    Thanks,
    Dinesh.

    Hi,
    You can define external commands using transaction code SM69.
    External commands are commands which would be executed at your operating 
    system with or without parameters.
    Operating system commands are those which you execute at OS level like
    mkdir, cat, rm, cp, ls
    Parameters are options that you add to os commands to get more functionalities.
    like, < ls -l > : will give you a long listing of files where " l " is the parameter
            < ls -lt > : will give you a long listing with last changed file at top where " lt " is the parameter.
    You can mention these in SM69 when you define the external commands.
    Now, in order to execute these in your background job. In the steps click on "external command" and give your command name in SM36 while creating your job.
    " Points for solution ".
    Thanks and Regards,
    Sandeep.

  • How to make external devices (like iPods, etc.) NOT mount as connected drives when plugged in via USB to a Mac?

    If I plug my iPod (or a thumb drive or whatever) to my Mac's USB port, the device appears as a icon representing a connected drive on my Mac's Desktop.
    This is normal, expected behavior.
    HOWEVER, in some cases, I'd prefer that the device not "mount" as a connected external drive.
    With thumb drives or external USB drive, of course, I want them to "mount" so I can transfer files on or off them -- that would be the only possible reason to connect an external drive like that.
    But with other Apple devices like iPods or iPhones, there are TWO possible reasons to connect them to a Mac: either to "sync" them or transfer files on/off them; OR, to simply recharge the device's battery. (Or, both sync and recharging functions at once.)
    For those people who use their Apple devices in ways that require transferring files (i.e. most people), then having the device "mount" as a connected device is a desirable behavior.
    But in my circumstance (and I bet there are a lot of people in a similar circumstance), I have no need or desire to transfer any data to or from my device every time I plug it into my Mac: I'm plugging it in SOLELY to recharge the device's battery.
    Specifically, in my case, I have a 6th-gen iPod Nano, and I use it exclusively as an FM radio and a pedometer. I don't have any mp3s or songs or any other external files loaded on it, nor do I plan to add any in the future.
    The only reason I ever plug it into my Mac is so that I can recharge the iPod's battery.
    But the "problem," which is a minor one I admit but a problem nonetheless, is that every time I connect the iPod to the Mac, the iPod appears as a "connected drive" icon on my Mac's desktop. Which means that I'm not supposed to just unplug the iPod  when I'm done -- first, I have to find its icon on the Mac Desktop, and then drag the icon to the Trash, to "unmount" it -- and only then can I freely unplug the iPod without getting an error message telling me that I shouldn't just disconnect connected drives without first properly unmounting them.
    This would be bothersome enough if I only had to do it once per connection, but in the case of the iPod Nano, there's no way to tell how recharged it is while it is in the act of recharging, so that to see if I'm "done," I have to unplug it, check the battery status, and if it's not fully charged, re-plug it back in. So that each time I recharge it, I often have to unmount the drive several times, depending on how impatient I am.
    There has to be a way to prevent the mounting of the drives of devices that one is connecting simply for the purpose of recharging. But how?
    Strangely, I also have an old iPhone, and when I plug that in for recharging in the same way, it DOESN'T appear as a connected drive on the Desktop. I'm not sure how I managed to do this, but long ago I must have changed some setting or preference for this to happen. And by now I've forgotten what I did.
    I'd prefer that I could change the "mount/don't-mount" setting on a device-by-device basis -- i.e. make it such that this particular iPod doesn't load, but perhaps a different iPod would load -- but if that's not possible, then is there a way to stop ALL iPods and iPhones from loading as connected drives when plugged in?
    (I'm not talking about appearing as connected drives within iTunes -- I'm talking about appearing as an icon on the Desktop in the Finder.)
    And please don't tell me to just buy a wall charger! I prefer to recharge off my computer if possible, using the charging cord that came with the iPod.
    I presume there's some simple setting to toggle this on or off, but I haven't yet found it. Any clues would be appreciated. Thanks!

    Well, I already know about that Finder Preferences option, but that is not what I'm looking for. Why not? Because I still need CDs and DVDs to appear on the Desktop and mount properly! If I uncheck the "CDs, DVDs and iPods" option, then I lose the ability to access CDs and DVDs, which creates a whole new problem for me. What I want is to not mount iPods only -- actually, what I really want is to not mount this particular iPod -- but if that level of specificity is not possible, then I want to exclude just iPods from mounting, without also condemning CDs and DVDs (or whatever) to invisibility.
    Also, I was confused by the way the Preference is worded: It says "Show these items on the Desktop," with a series of options to check. But this phraseology seems to mean that the unchecked items will still "mount," they simply won't appear as Desktop icons. One would still have to "Eject" them using a menu command, rather than dragging the icon to the Trash -- right? Or am I mistaken, and is the Preference Pane simply badly worded, and when they say "Show these items on the Desktop," what they really mean is "mount these external devices as connected drives." So that if a category is unchecked, then they won't load as external drives at all?
    But if so, then what purpose could possibly be served by inserting a CD or DVD that is not recognized by the computer? And if it isn't recognized, then it would seem that there would be no way to ever Eject the CD or DVD disk. Right?
    Thus, if I uncheck that Finder Preference box you suggest, one of two outcomes will result:
    -- Either CD, DVDs and iPods are still mounted, they just won't appear as icons on the Desktop; but they would still need to be Ejected via a menu command, which doesn't solve my problem.
    -- Or, CDs, DVDs and iPods are not mounted or recognized by the computer at all, which means that if I insert a disk into the disk drive, it will get stuck there forever, since there's no way to Eject it, since the OS doesn't recognize that it's even there. Which is thereby a new problem.
    Either way, I'd have a problem! Or...? Clarification, anyone?

  • How can an add-on like Firesheep access and execute an external program like Winpcap? Is that a security flaw in Firefox?

    I have been reading about the Firesheep add-on that allows the user to hijack sessions of users on the network by stealing the cookie. I understand that to prevent any application from stealing the cookie, the cookie should not be passed by the site without SSL. However, my understanding of how Firesheep works is that it interfaces with Winpcap (a network sniffer). So my question is "How can an add-on execute an external program or operating system command like Winpcap?" Can any add-on do this and should I be extremely afraid of downloading any add-on because of the potential that it could have complete access to my system?

    Hi Scott-L.
    You asked a very good question and it turns out you're right.
    However, one must be aware that download an Addon on another website that Mozilla may be dangerous. Indeed, the Addons found on the Addon Center are checked (roughly).
    In addition, Firefox includes a blacklist that blocks addons identified as malicious.
    More information here: [http://www.computerworld.com/s/article/9193420/Mozilla_No_kill_switch_for_Firesheep_add_on?taxonomyId=17&pageNumber=1]

  • Change status(Active/Inactive) of file adapter by the external command

    Hi, all.
      Is it possible to change status(Active/Inactive) of file adapter by the external command?
      Let's say, like
      "$ switch_file_adapter_status.sh <File Adapter name> <active|inactive>"
    or something like that.
      Actually, we have the following requirement for the file adapter.
      For example, we have many "file adapter to R/3" scenarios and we only want to allow data transfer between 9:00 a.m. to 9:00 p.m.(R/3 service time).
      In order to achieve this requirement, one option would be to switch file adapter status between active and inactive by external command line.
    And this command will be controlled by the job scheduler(like Tivoli).
      Does XI(3.0 or above) have this kind of feature?
      Best Regards.

    Hi,
    I don't think that this is possible.
    But one Solution for your problem could be a job on xi who execute the Queue.
    So that Adapter work the hole time and send the Message to XI Queue which process them not automatically.
    And the XI Queue you can trigger with a Job like normal R/3 Jobs.
    Hope that helps,
    Regards,
    Robin

  • GZIP and External command.

    Hello,
    My problem might seem simple but I have tried for a couple of days now to make researches on that matter and it still doesn't work, no matter what.
    I had to make, with SM69, two external commands. One was using the command "mv" which is working very well and the other must be a "gzip" with a parameter "-c" and, in a module function, with the function "SXPG_COMMAND_EXECUTE_LONG", I have to send the path and the file name.
    So since I am not able to make it work in the module function I'm creating, I am working to make it work on SM69. So here what I have entered so far...
    Operating System Command: gzip
    Parameters for operating sytem command: -c
    Additional parameters: path/file.txt > newpath/file.txt.gz
    Though, the only thing I am receiving is no change at all and I'm receiving  u2039  È ®J as a message. The Exit code is at 1 and the exit status is E.
    I know it means there is something wrong but all my researches lead me to do it that way so I'm not sure where I am going wrong and how to make it work appropriately.
    Can you please help me?
    I am open to questions if you have any.
    Thank you

    Hi, kindly check the following  example
    Command name : ZTEST
    Operating system command : cmd /c
    v_dir_input = 'cmd /c c:\winzip\wzzip.exe -password  g:\test1.zip g:\test.pdf'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                   = c_extcom
        additional_parameters         = v_dir_input
        operatingsystem               = c_oper
      TABLES
        exec_protocol                 = t_result
      EXCEPTIONS
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        OTHERS                        = 15.

  • How to execute external command from SAP

    Hi gurus,
    i need to execute an external command from a Sap (rel ECC.5.0) to a server UNIX (no SAP); precisely i have to write a file into a directory in unix server.
    I see transaction SM49 and Sm69 but i don't know how can i use these features.
    Please coul'd you help me or give me a documentation.
    Thank's in advance
    Maurizio Ortolani
    email. [email protected]

    Hi Maurizio,
    i do it in this way:
    CONSTANTS: CMD_LS(50)   VALUE 'ls -al /transfer/sap'.
      DATA: BEGIN OF ITAB_LS OCCURS 0,
              LINE(200),
            END   OF ITAB_LS.
      CALL 'SYSTEM'
        ID 'COMMAND' FIELD CMD_LS
        ID 'TAB'     FIELD ITAB_LS-SYS.
    How do you write the file, via an UNIX-COMMAND than try the above call
    with your command.
    Another way is to write the file via OPEN DATASET ..., TRANSFER ... TO ..., CLOSE DATASET.
    If you mean this i can give you an example.
    Hope it helps.
    Regards, Dieter

Maybe you are looking for

  • Issues in SharePoint 2013 after Upgrade from SharePoint 2010

    I have recently migrated sharepoint 2010 web applicaiton to 2013 using database attach and detach methods.  I have few issues and just wondering they are issues or not.  I am running in compatible mode in 2013. 1.I am not able to make a copy of any e

  • How do you stream a live video to a website

    OK - Again I'm feeling smart enough to be real dumb. How do you stream a live video to a website. I use GoDaddy to host a website. I can plug a video camera into my Mac so I can run the video through whatever program works best. I even have a .mac ac

  • Adding audio suddenly creating video gap

    I'm working on a slide show and it was going really well until today. The video is finished, with transitions, effects, etc., and I've been adding audio over the past couple of days. Today, I added a couple of songs and they did fine, then I added an

  • Anyone with Flash CS4? I need a CS4 file saved out as CS3

    I was working on an assignment for my flash course and as we use Flash CS4 at uni I saved it out in that format. But now when I try to open the same file at home in CS3 it wont work. Could someone with CS4 please save the file out for me in CS3? I wo

  • How to install uodated flash player for gaming

    how to install upgraded flash player for gaming