What is better a shell script or a user exit?

Hi experts!
I need to change the owner of a file when I send it to XI sever.
I talk with the administrator of the system to change the owner with a shell script but he tell me that is better if I use a user exit. But my question is: What is better? The shell script or the user exit?

hi,
>>>>I talk with the administrator of the system to change the owner with a shell script but he tell me that is better if I use a user exit
maybe because the admin does not do the user exits ?
you can do it with XI but you'll have to create it
via a proxy for example (as standard file adapter does
not support this) 
on the other hand the file adapter supports invoking
system commands (so you can start a shell script)
I'm not directly answering your question
I'm just telling you what you'll have to do
to build your solution in both cases
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • What is better than Skype when two iPad users want to live chat?

    What is better than Skype when two iPad users want to live chat?

    The built in app, FaceTime.

  • What to use in shell script for CR when \n doesn't work.

    Hi I'm new to LINUX and I'm writing a shell script.
    I noticed when I'm at the command line I can type:
    echo "one\ntwo"
    and it will produce:
    one
    two
    when I put that SAME line in a shell script I get:
    onentwo
    Why? What can I use as CR character in a UNIX shell script that will work?

    That's not a normal behavior, not in Bash. Are you using the c-shell csh/tcsh ? or perhaps you have echo defined as an environment variable that was not exported, so it only works in your current shell, but not in any subshell. If you use the c-shell you may sooner or later run into problems, since this shell is not sh or bash complient.
    To enable the interpretation of backslash escape sequences in the korn or bourne shell you can use the -e paramter. For instance
    [dude@vm210 ~]$ echo -e "one\ntwo"
    one
    two

  • Run shell script as sudo user without giving sudo passowrd from normal usr

    Hi ,
    i am running shell script from my account with sudo user what is the problem in my procedure.
    Please if any thing wrong in my procedureprocedure or any permission required please let me know.
    here is the my procedure and sudo permissions.
    [techm@ppsol04 ~]$ sudo su - dadm sudo -u dadm /u01/ora/tools/Dbmon/scripts/export.sh
    Sorry, user techm is not allowed to execute '/u01/ora/tools/Dbmon/scripts/export.sh' as dadm on ppsol04.
    [dchandu@ppsol04 ~]$ sudo -l
    Matching Defaults entries for techm on this host:
    env_keep=SSH_AUTH_SOCK, !authenticate, env_reset, always_set_home, !requiretty
    sudo permissions :
    sudo -l
    Matching Defaults entries for techm on this host:
    env_keep=SSH_AUTH_SOCK, !authenticate, env_reset, always_set_home, !requiretty
    User techm may run the following commands on this host:
    (ALL) NOPASSWD: /local/bin/hardened_profile.sh
    (root) NOPASSWD: /bin/su - dora
    (root) NOPASSWD: /bin/su - doraadm
    (root) NOPASSWD: /bin/su - docenter
    (root) NOPASSWD: /bin/su - tora
    (root) NOPASSWD: /bin/su - toraadm
    (root) NOPASSWD: /bin/su - tocenter
    (root) NOPASSWD: /bin/su - hora
    (root) NOPASSWD: /bin/su - horaadm
    (root) NOPASSWD: /bin/su - hocenter
    (root) NOPASSWD: /bin/su - agcfdwf4
    (root) NOPASSWD: /bin/su - pora
    (root) NOPASSWD: /bin/su - dadm
    (root) NOPASSWD: /bin/su - pocenter
    (root) NOPASSWD: /bin/su - agcfdwp4
    Thanks
    tech

    Can you please explain what you are trying to accomplish?
    To my understanding there is no such thing like a sudo password for a normal user. Sudo allows users to become root based on a sudo list (suoders). The user is then prompted for their own account password to run as super-user or root.

  • Execute process (shell script) under different user

    Hi,
    is it possible to use the ProcessBuilder oder .exec()-method to execute a shell script under a JVM-different user? I need to start shell scripts for different system users and I don't want to use SUDO or a wrapper script to switch to the required user. I would like to define the user at java level. Is this possible?
    Best regards,
    Thomas

    looking for something like this too.
    currently i am relying on a script in which i have to set the user as:
    "su username -c java_program"
    the problem with this approach is that if youre not running as root, then su asks for a password, thereby halting execution. (tried input redirects and here-docs, (some popular linux tricks), they did not work)
    so you have to be root for the script option to work.
    if anyone can suggest a more "java based" way of executing a process as a different user , thatll be awesome.

  • What are the different methods to find the user-exit for any requirement?

    Hi Everybody,
    What are the different methods to follow to find the user-exit for any requirement?
    Thanks & Regards,
    Nagaraju Maddi

    The following program search all the user exits involved with a T-code:
    Selection Text: P_TCODE: Transaction Code to Search
    Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP® User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP® Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP® Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    * Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    * Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
      * Find SAP® Modifications
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    * Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • Power shell script for AD User

    Hi Team,
    can any one help me to find out this in ad through power cell script.
    List of users who's password has been reset in 90 days.
    Regards, Triyambak

    Try amending the following script from the repository.http://gallery.technet.microsoft.com/scriptcenter/Query-for-AD-Users-that-b87acf2f

  • Execute Shell Script from OWB Process Flow

    I am trying to execute a Shell Script from a User Defined activity of OWB Process Flow. As I have not done such things earlier
    I need to know:
    1. Where I will put the Shell Script (move_file.sh)?
    2. What are the values in need to enter in the external process parameters (such as Command, Script, Result Code, Parameter List, Sucess Threshold etc)
    Please reply this thread. It would be a big help for me and probably for others as well.
    Kind Regards
    Zakir
    Message was edited by:
    Zakir

    Check this out,.
    http://download-uk.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/ref_processflows.htm#i1173362
    And answer to your question1, the shell script should be on the unix server.
    Regards

  • Importing thru a shell script

    I want to import thru a shell script..in oracle 10g rel 2. on RHEL4
    Is there any way thru which i can mimic the file open dialog box in windows in Linux here.
    So that i can call the file open dialog and browse for the particular file to import.
    which will be concatenated in a string in ...imp command in shell script..
    Else how do i input the file name (to import) in a shell script from the user..

    I want to import thru a shell script..in oracle 10g
    rel 2. on RHEL4
    Is there any way thru which i can mimic the file open
    dialog box in windows in Linux here.
    So that i can call the file open dialog and browse
    for the particular file to import.
    which will be concatenated in a string in ...imp
    command in shell script..You would just to use the database control which comes with 10g, and has all this functionality,and can generate a script on the fly.
    >
    Else how do i input the file name (to import) in a
    shell script from the user..In what scripting language? This rather not an Oracle question but an Unix question. You would just need to type
    man read
    on the command prompt, and you should be set.
    Sybrand Bakker
    Senior Oracle DBA

  • UDM and shell scripts and working with the ENVIRONMENT variable options

    In Userdefined metrics you have the ability to pass envronment variables.
    I was going to send
    DIR=/db/db05/oradata/ORCL/hot
    How to handle whats passed to the shell script?
    It passes $1 as {DIR=/db/db05/oradata/ORCL/hot}
    yes with the brackets. Here I figured it would simply set the DIR environment variable.
    Any cool tricks to work with this mess?
    Is it meant for perl scripts instead?
    Daryl.

    Ilmari Aalto wrote:
    Hi Darth,
    Thanks for your hint! Nevertheless I think it's something more profound, since there's no error etc. For example, should I have the path wrong I assume that OWB would return me some kind of an error when it doesn't find the .sh-file? Isn't there any log-file to see whether the command was executed? It seems like the execution of the User Defined element would be skipped altogether.
    Cheers,
    IlmariNo, if you don't give an absolute path OWB will not return any error, it just wont do anything at all...

  • From Where i can help or manual about writing shell script in oracle

    can any one help me to write shell script in oracle.

    not sure what you meant by shell script in oracle. If ou want to write a shellscript that interacts with an oracle database, you ma want to refer to an unix programming book and sqlplus manual.
    Rgds
    Arvind Balaraman

  • Power shell script for get a content db for a particular web application

    Hi
    what  is the power shell script for get a content db for a particular web application
    Get-SPDatabase 
    adil

    try this one
    Get-SPContentDatabase -webapplication http://url
    this will return all the database for the web applications.
    Get-SPContentDatabase -site http://contoso.com
    this will return the database name in which the contose site collection is.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Passing password from shell script to Java

    Hi there,
    I have a shell script which has user id and password stored in variables. I call a java program from this shell script. I tried accessing this environment variable from java using system.getproperty and java is not getting the values. I have used export USERID PASSWORD
    and java classname to call it.
    I do not want to pass it as arguments because of security reasons. can anybody help me please.
    Thanks a bunch.

    Hi there,
    I have a shell script which has user id and
    password stored in variables. I call a javaprogram
    from this shell script. I tried accessing this
    environment variable from java using
    system.getproperty and java is not getting the
    values. I have used export USERID PASSWORD
    nd java classname to call it.
    Presumably you are using one of the newer java
    versions.
    Questions
    1. What statements are you using to set, export and
    run java?
    2. What shell are you using?
    3. How are you accessing the vars in java?
    I do not want to pass it as arguments because of
    security reasons. can anybody help me please.
    That is nonsensical. Putting it in env vars exposes
    it more than passing it as args.Thanks for replying jschell.
    1. I am using newer version java 1.5
    2. shell scripts gets it's variables from oracle reports through webservices.
    3. to run java i use java javaclassname3. I used EXPORT variablename and in java called system.getproperty(variablename)But system.getproperty is getting a null.
    And the decision about not passing it as args was made by our client. They think it's not safe to pass password.
    are they wrong??
    Please help me.

  • Perl Scripting -  Is it an alternative to shell scripting?

    Hi all,
    I am new to Oracle. I am trying to learn the basic concepts
    I read that PERL is a server side scripting language.
    I understand the purpose of shell scripts. I come across terms PERL shell scripts.
    I understand PERL interpreter comes with UNIX.
    1. So, is scripting using PERL an alternative to shell scripting? or
    Does it have a different purpose?
    2. If an alternative, then when would PERL scripting be better than shell scripting or vice versa ?
    3. If an alternative, can PERL be exclusively used replacing shell scripting or as mentioned in my 2nd question used based on the application.
    Your reply will be truly appreciated.
    Thanks!

    A hypothetical question: If a unix had PERL
    installation can I use it replacing the unix shell
    scripting for carrying out day to day DBA tasks? You
    mentioned it is not done that way but theoretically
    can it be done?
    Yes, if you are proficient with Perl, you can use perl to script DBA scripts. Perl is more powerful than shell script. So there's nothing Perl can't do that shell can, there are many things Perl can, regular shell can't.
    The limitation is some company has tight policy on installing non-default software on servers, especially production high security servers.
    If not for carrying out day to day DBA tasks using
    PERL scripting is there any other reason for why PERL
    may come installed or can be installed in a UNIX
    flavor?
    Like said, Perl has many useful functions and modules. With DBD/DBI module and string processing power (Regular Expression etc), Perl is very popular tool for dataloading scripts as well as phyton.
    Perl and Phyton are also heavy used for CGI application and much more.

  • Shell Script or Applescript to run disk permissions repair

    Tried doing this Applescript in Automator:
    do shell script "sudo diskutil repairPermissions /" ¬
      password "yourAdminPassword" with administrator privileges
    This works, but the process appears to run without shutting down when it's done.
    Can anybody suggest an addition or modification to terminate when the permissions repair is completed?

    do shell script ¬
              "sudo diskutil repairPermissions / ; exit" password "yourpassword" with administrator privileges

Maybe you are looking for

  • Are apps refreshed from Apple store with iOS6?

    I have DataMan Pro, which is able to report on data usage per app.  A few months ago, Apple forced the developers to remove that functionality, and anyone who buys the app now does not get it.  When I do eventually update my phone to iOS6, will I kee

  • Is there an easy way to migrate from Outlook 2007 on the PC to Mac Mail?

    Upgraded to a new Macbook Pro. I have a laptop with Office 2007 with Outlook 2007. What is the best way to migrate to the new Macbook Pro? Also, If I set up the cloud, will it sync with Mac Mail (Do I have to have an @ icloud.com email or can I use t

  • Crystal Reports XI - Registration Wizard - Cannot get a valid key code

    I'm not sure if this is the right forum or not and, if not, my apologies.  I had this installed on PC before (CR XI Professional Edition) but my PC crashed and I had to do a reinstall on Windows, etc. Now, when installing CR, I am getting the above e

  • Internet Connect error message

    Help! Though I have no problems accessing the web via ethernet, I continue to get an annoying pop up display message all the time: "Internet Connection - Could not open communication device" All connection options are disabled as best I can tell - ex

  • Visor handheld Service Centre in Mumbai,India.

    Please provide contact details of Service Center for repairing Vizor Handheld , situated at Thane or Mumbai , Maharashtra State , India  or E-mail ID of Palm Company for seeking said information . Post relates to: Visor Neo