Shell scripting basic question

I wrote as shell script .p02ibm to set my env but its not working when i run it, wondering what i am doing wrong?
[oracle@localhost ~]$ echo $SHELL
/bin/bash
vi .p02ibm
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_SID=p02ibm
export ORACLE_SID
EDITOR=vi
export EDITOR

Just curious why you are creating a new file when you probably should be adding the oracle user's enviroment variables to the .bash_profile in the $HOME directory.
The shortened setting method is:
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
Normally you would add them under this section (in the .bash_profile):
# User specific environment and startup programs
Rick

Similar Messages

  • .sh shell script Xcode question

    So in my application I'd like to include a shell script and have a button execute it
    for the sake of keeping things simple lets say the shell script is "mkdir ~/1234"
    Now I have the button on the interface and i have the shell script saved in a file named script.sh
    how to I make the button execute the shell script
    (also I would like to do this without using applescript)

    Have a go at this tutorial. There really isn't a simple way we can explain how to do what you need. It's not hard, but there are several critical things you need to learn.
    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjCTutori al/01Introduction/01Introduction.html
    Best of luck.
    Eric

  • Sql loader shell scripting

    Hi All,
    I need help on sql loader shell scripting basically since my input file is csv file will load into some target table say xx_90 along defining with control and data file. what where the data that goes into the bad file a segment of scripting that keep watching on badfile directory path if any bad file it finds it should move to a sperate database error table.
    Plz any sqlloader shellscripting experts can provide me the solution for this. Its a very urgent code i need to deliver I need the sample code for this your help is highy appreciated
    thanku
    sahana

    thanku..............when the load fails it moves to bad file script something like filewatcher it sees the data in the badfile and loads into the database error table........as i am basically businessobjects developer as for time being they have assinged me the task i did few manual loading on sql loader but i never have any experince on writing unix scripting i am quite worried to get this script done........
    can i use the samecode for the failed bad records into seperate external table......
    here i would change the path location and the rest goes as it isright............................i have the script for loading the datainto the targetsomething like this:
    sqlldr userid=ops$NGPTQMS/[email protected] \
    control=${evncpaq1/apps/cp/cm/r11.5.10/geae/gl/include/PAY0001_test.ctl} \
    data=${evncpaq1/data/infile/mon_gross_det.dat} \
    log=${evncpaq1/data/infile/mon_gross_det.log} \
    discard=${evncpaq1/data/infile/mon_gross_det.dis} \
    errors=999
    #bad=${BAD_FILE} \
    if [ $? -ne 0 ]; then
    echo "Error ! The sql loader call failed "
    exit 1
    fi
    IF any error is there in the script plz modify it and plz provide the complete code where to incorporate the code which you have written for bad file. Would be set it in seqence the steps so that i can run it in cron tab basically i have no other support for me to assist me on the job.......
    my dba has sent me the mail something like this:
    Please see the attached script to archive the source file once we are done with loading the data to the database. You already have the script for loading the data to the database. Please incorporate the attached script with your loading script. This script is generic and can be used to archive the bad file also once it has been loaded into the database (in case of any failures). This script send an email in case of any failures to the defined email distribution list. Right now the assumption is to run this through the cron. It we need to run this through the Appworx I will have to do some changes in the script. Also we will have to install the appworx agent on the server. Please let me if we need to need to run this through appworx I will create the appworx module for the same.
    and the archive script he sent is:
    . $HOME/.profile
    # Script to Archive SysLog files
    # This script accepts 2 parameters
    # - 1: Script Name          2: File Name
    # Created By : Pravin Darbare
    # Creation Date : 03/19/2008
    # Modified Date :
    # Modification History :
    echo "Starting SysLog_archiving Process"
    # Set Environmental Variables
    echo "Invoke Set Variable Script `date '+%H%M%S'`"
    # Set Local Script Variables
    #SCRIPT_NAME=$1
    SOURCE_DIR=$1
    FILE_NAME=$2
    # Zipping and Archive Source File
    echo "Zip Source file `date '+%H%M%S'`"
    #cp $LOAD_SRC_FILES/$SOURCE_DIR/$FILE_NAME $LOAD_SRC_FILES/syslog/Old_$FILE_NAME
    gzip /$SOURCE_DIR/$FILE_NAME
    check_rtn_status=$?
    if [ $check_rtn_status != 0 ]; then
    echo "Zipping source file Syslog process unsuccessfull"
    mailx -s "Zipping source file during Syslog unsuccessfull" $PR_PAGER_EMAIL_LIST </dev/null
    exit 1
    fi
    echo "Archive Source File `date '+%H%M%S'`"
    mv /$SOURCE_DIR/$FILE_NAME.gz /$SOURCE_DIR/archive/$FILE_NAME.gz$FILE_EXT
    check_rtn_status=$?
    if [ $check_rtn_status != 0 ]; then
    echo "Archiving source file during Syslog load process unsuccessfull"
    mailx -s "Archiving source file during Syslog load process unsuccessfull" $PR_PAGER_EMAIL_LIST </dev/null
    exit 1
    fi
    # example of calling file Syslog_archiving_Files.sh /apps/syslog/source_dir a.txt
    # example of calling file (Bad file) Syslog_archiving_Files.sh /apps/syslog/source_dir_bad a.txt
    # You need to have directory "archive" in both pathes .
    based on the complete detailed mail must having some view plz provide me something like exact code the rest path directories i will change it........
    for me its highly urgent to keep up my job
    Your support is highly appreciated
    Thanks&Regards
    sahana

  • Shell scripting question

    I'm writing a shell script and I need to get $PWD. There's a cd command in my script, and my script needs to navigate back to the directory in which it was executed. Is this possible? If so, how would I go about doing it? Sorry if this is in the wrong board.

    In the future, you may want to post Unix and Terminal oriented questions to the Mac OS X Technologies > Unix Forum
    <http://discussions.apple.com/forum.jspa?forumID=735>

  • Beginner question - testing for null string from shell script command

    I'm trying to test the result of a shell script command. I want to put out a message if the result is a null string. At present I get this applescript error "The command exited with a non-zero status"
    I'm sure this is a simple question ... but I can't figure out how to do it. Help!

    You can use try clause for the problem:
    set _result to ""
    try
    set _result to do shell script "/blah/andblah"
    end

  • Editing question, preferably with "do shell script"

    I would like to edit an expression
    from: blah blah /Paragraphs/one two three
    to: blah blah /Paragraphs/one-two-three
    where "/Paragraphs/" is always present
    but "one" might be anything
    Using sed with regexp seems like a way to go, but I don't know how to designate "one," which will vary. Viz.:
    set T to "blah blah /Paragraphs/one two three"
    set T1 to do shell script "echo " & quoted form of T & " | sed 's/\\/Paragraphs\\/{anything}/\\/Paragraphs\\/{anything}(change all subsequent spaces to "-")/g'"

    Hi,
    Can't believe I did it with sed! My test.txt file looks like this:
    blah blah #one here's some text
    blah blah #two more text
    blah blah #three and even more text
    #four number begins this line
    Here's the sed part:
    sed 's/#/\
    #/' < test.txt | sed '/#/ s/ /-/g' | sed '
    N
    s/\n#/#/
    Here I used "#" instead of "/Paragraphs/". Now, you translate this into a do shell script. If you need help with that, then write back. I now understand the N command for working with multiple line processing. Here's the tutorial I used:
    http://www.grymoire.com/Unix/Sed.html
    Edited: and here's the output
    blah blah #one-here's-some-text
    blah blah #two-more-text
    blah blah #three-and-even-more-text
    #four-number-begins-this-line
    gl,

  • Two questions regarding shell scripts in automator

    they are both concerning this script:
    I pass it an .avi file (I believe it could also take more than one), and outputs a converted file (that is playable on appletv2) that is dumped in my "Converted" folder.  This all works fine and dandy.
    However, I would like to have it prompt the user for a destination folder, and pass that in as well.  However, I do not know how I would refer to that variable separately.
    Handbrake's CLI application also produces output that shows what percentage the conversion is at, and although the script passes this output as it's own output (to the next automator action - I actually discovered this only by accidentally leaving a "Speak Text" action in), I want to be able to see this output in real time.  Is there anyway to do this?  Thanks for the help!

    To be clear, this is what you mean, correct?
    for outpath; do :; done
    for f in "$@"
    do
        if [ "$f" != "$outpath" ];
              thenof="$outpath"/`basename "$if" .avi`.mp4
        /Applications/HandBrakeCLI -i "$if" -o "$outpath" --preset="AppleTV 2"
        fi
    done
    I assume that "Ask For Finder Items" also passes it's input along to the next action?  Would "Get Value of Variable" do the same thing?  (I also use the same workflow to convert .mkv files and copy .srt files to the same destination folder, so I need to access the source files multiple times to filter out different files each time).
    I would just test it myself, but I am not at my computer right now.
    And this is kind of off topic, but since automator actions can be written in shell script, could this be easily made into one? How much work would it involve? 

  • Shell script question

    Hi all,
    I know this is a little bit off subject but i have a shell scripting problem and was wondering if any of you could help...
    so:
    L=`wc -l $CATALINA_HOME/webapps/EmailSignup/Data/add.txt`
    stores the number of lines some file has...
    eg output:0 /usr/local/tomcat4/webapps/EmailSignup/Data/add.txt
    so now i want to have an if statement that will compare to see if the number of lines are equal to zero...
    how can i do that... this is what i do but it never seems to go in the if...
    it always goes in the else..
    if [ "$L" == " 0 /usr/local/tomcat4/webapps/EmailSignup/Data/add.txt" ] ;
    then
    echo $L
    echo No additions to the Email List
    else
    echo --$L
    echo Adding new entries to the Email List
    fi
    any ideas?
    thanks
    udam

    Try using the '-eq' operator of the 'test' program. (Square [] brackets in a Bourne shell script invoke the '/bin/test' program for your convenience. See the man page for 'test' for more info.)
    '-eq' compares two values NUMERICALLY, while '==' compares two values as STRINGS.
    Oops, I see what the other poster said about the leading space. What you really need to do is cut the number out of the string. You don't care about the file name.
    if [ `echo "$L" | cut -c 1-7` -eq 0 ] ;
    then
      echo $L
      echo No additions to the Email List
    else
      echo --$L
      echo Adding new entries to the Email List
    fi

  • Shell Script Question re: Cut Training Policy

    My shop uses KXEN version 5.1.3, and I've inherited an older shell script that defines the CutTrainingPolicy as "random". Here is a piece of the code:
    createModel Kxen.SimpleModel newmodel
    newmodel.getParameter ""
    newmodel.changeParameter Parameters/CutTrainingPolicy "random"
    newmodel.validateParameter
    newmodel.pushTransformInProtocol Default Kxen.RobustRegression
    newmodel.pushTransformInProtocol Default Kxen.ConsistentCoder
    newmodel.openNewStore Kxen.FileStore c:/temp
    newmodel.newDataSet Training train.txt
    etc.
    A user has requested that I test a custom cutting strategy without test, so I set it up in the GUI and exported the script. It now looks like:
    #GENERATED_BY_KXEN
    # KXEN Shell Script
    # generated on 2014-08-13 17:16:07
    # by KXEN version 5.1.3
    default STORE_USER ""
    default STORE_PWD ""
    default DESC_USER ""
    default DESC_PWD ""
    #Declaring the 'ESTIMATION' store and space
    default ESTIMATION_STORE_TYPE "Kxen.FileStore"
    default ESTIMATION_STORE_NAME "D:\DATA/199710"
    default ESTIMATION_STORE_USER $STORE_USER
    default ESTIMATION_STORE_PWD $STORE_PWD
    default ESTIMATION_STORE_ALIAS myEstimationStore
    default ESTIMATION_SPACE "model219.txt"
    #Declaring the 'VALIDATION' store and space
    default VALIDATION_STORE_TYPE "Kxen.FileStore"
    default VALIDATION_STORE_NAME "D:\DATA/199710"
    default VALIDATION_STORE_USER $STORE_USER
    default VALIDATION_STORE_PWD $STORE_PWD
    default VALIDATION_STORE_ALIAS myValidationStore
    default VALIDATION_SPACE "model219.txt"
    default MODEL_SAVE_STORE_TYPE "Kxen.FileStore"
    default MODEL_SAVE_STORE_NAME "."
    default MODEL_SAVE_STORE_USER ""
    default MODEL_SAVE_STORE_PWD ""
    default MODEL_SAVE_NAME "target_model219.bigtrain"
    default MODEL_SAVE_SPACE "target_model219.kxen"
    default MODEL_SAVE_COMMENT "The model 'target_model219.bigtrain' has been saved"
    createModel Kxen.SimpleModel m
    m.getParameter ""
    m.changeParameter Parameters/CutTrainingPolicy "random"
    m.setName "target_model219.bigtrain"
    m.validateParameter
    etc
    I can see that the ESTIMATION and VALIDATION data sets are now defined, but the policy still says "random". Does this matter? Should I override the value? I can't find anything in the API docs.
    Thank you,
    Scott

    Can anyone tell me if I've posted this in the correct forum?
    Thanks,

  • Simple Shell Script Question.... [java related]

    Hey guys! This is my first post, as im new here :S
    I have a simple problem for a big program.
    We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I don't know MUCH about shell scripts, but I'm pretty sure I know where the error lies.
    Our Script:
    java -classpath ./:./jars/tools.jar:./jars/nexus.jar impsoft.nexus.installer.Install
    chmod a+x run.sh compile.sh
    The Error:
    Exception in thread "main" java.lang.NoClassDefFoundError: impsoft/nexus/installer/Install
    What I think the problem is:
    ./jars/nexus.jar impsoft.nexus.installer.Install
    Thank you for ALL of your help!

    Hi Justin,
    Have you tried running the lines from the command line?
    The second thing you may want to try is changing the relative directory for the jar file from a relative one to a fixed directory. From the error, it appears that the install program is running but it is not able to locate a library mentioned in the program (which is probably the jar file listed in the classpath).
    Hope that helps.
    J. Haynes
    Denver

  • Passing params from SQL file to Shell Script and then from Shell to SQL Fil

    Afternoon guys,
    Have a fun question for all you gurus in shell scripting out there. I have a shell script that is calling 2
    different SQL programs. My objective is to pass a variable called request_number from one sql program
    to the shell script and then from the shell script back to another SQL program. I will explain why I
    need this to happen.
    Here is what the shell script looks like which calls sql programs student_load_a.sql and
    student_load_b.sql. Student_load_a.sql basically creates the control file (.ctl) which is needed for the
    SQL*Loader and then student_load_b.sql reads the table that was just loaded and does the main
    processing. My main objective here is to be passing the request_number which is being generated
    using an Oracle Sequence in student_load_a.sql and using this generated number in my main
    processing in student_load_b.sql to select records from the table based on request_number.
    Any ideas ?Any help or recommendations is welcome and appreciated.
    *1. Shell Script*
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id
    exit_status=$?
    # Do sqlloads
    sdesqlldr.exe userid=$p_user_id control=student_load-$p_job_id.ctl \
                                                 log=student_load-$p_job_id.log \
                                                 bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id
    exit_status=$?
    exit 0*2. student_load_a.sql (Would like to pass back the Sequence Number back to shell script and then use in student_load_b.sql*
    -- Accept system input parameters
    define p_job_id = &1
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ' || '''' || request_number_seq.nextval || ''',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    *3. student_load_b.sql (This is a big file so I am only adding code that is relevant for the SQL)*
    {code}
    declare
      v_request_number    number(6);
      v_student_id                  number(7);
      cursor cur_student_load is
        select  student_id
        from   TMP_STUDENT_LOAD
        where  request_number = v_request_number
        order by 1;
    begin
        v_user_id := '&1';
        v_job_id := &2;
        -- This is the variable I would like to be be passing from shell script to student_load_b.sql
        -- v_request_number = '&3';
         open  cur_student_load;
         fetch cur_student_load into v_student_id;
          exit when cur_student_load%notfound;
          .... more logic of if then else in here
         close cur_student_load;
    end;
    {code}
    Edited by: RDonASnowyDay on Jan 29, 2010 4:03 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How come you are mixing WinDoze script (*.exe) with Unix?
    You are aware that you will be passing the password along with the user id to the second sql script?
    I will assume Unix ksh:
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    p_seqno=`sqlplus -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id`
    exit_status=$?
    # Do sqlloads
    sqlldr userid=$p_user_id control=student_load-$p_job_id.ctl \
           log=student_load-$p_job_id.log \
           bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql \
               $p_user_id $p_job_id $p_seqno
    exit_status=$?
    exit 0And the first sql script would look like this:
    -- student_load_a.sql
    -- Accept system input parameters
    set echo off pages 0 feed off lin 80 trims on ver off
    def p_job_id = &1
    col seqno NEW_VALUE seqno
    select request_number_seq.nextval seqno from dual;
    set term off
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ''&&seqno'',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    :p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Calling sql script from shell script

    Hi,
    I know this question has been asked many time in various forums, but I tried many combinations and not able to figure out what I'm missing.
    Basically - I'm trying to call a sql script from a shell script.
    This is my sql script (plsql.sql) -
    DELCARE
    v_empno NUMBER := '&empno';
    BEGIN
    select ename,sal from emp where empno = v_empno;
    dbms_output.put_line('Inside the plsql file');
    END;
    This is my unix shell script - I'm caling the plsql.sql file with the parameter passed(97882). I don't get any output. at least I should be able to view the dbms output if not for the sql query inside the sql script.
    #!/usr/bin/ksh
    sqlplus -s sam/olo01 << HERE
    @plsql.sql 97882;
    HERE
    What is it I am missing ?

    Using your scripts (and having to create and populate a table myself, that would have what your select statement implies),
    oracle:oklacity$ cat plsql.sql
    DELCARE
    v_empno NUMBER := '&empno';
    BEGIN
    select ename,sal from emp where empno = v_empno;
    dbms_output.put_line('Inside the plsql file');
    END;
    oracle:oklacity$ cat doit.sh
    #!/usr/bin/ksh
    sqlplus -s sam/olo01 << HERE
    @plsql.sql 97882;
    HERE
    oracle:oklacity$ ./doit.sh
    SP2-0042: unknown command "DELCARE" - rest of line ignored.
    SP2-0734: unknown command beginning "v_empno NU..." - rest of line ignored.
    oracle:oklacity$
    This is the kind of information you should have put in your opening post.

  • How to use "do shell script" when Terminal replies with a prompt?

    Hey all,
    I'm wondering how to properly use "do shell script" when Terminal replies with a question? In this example, I'm building a small tool in AppleScript that will auto-update the Android SDK via command line prompts. The problem is when I tell it to update all ("update sdk --no-ui"), I need to accept licence agreements before it continues, and the amount of licence agreements brought up is different every time.
    So, basically, I'm wondering how to handle a case where "do shell script" encounters a case where Terminal would normally need a user's response to?
    Thanks,
    Behn

    If it is variable number of prompts that is a problem.  Look around hd and figure out how many prompts there will be. Ask around android forum for a bash solution. There are some test case apps that will let you put conditionals on output from running programs.
    # traditional way.  Pipe output to command.
    do script "echo 'ok' | update sdk --no-u"
    Here is the preferred way of getting administrator privileges.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Prgraming for Solaris - Basic Question

    Hi,
    I am very new to Unix and Solaris and have some questions I hope some one maybe able to help with.
    I was recently handed a new application which runs on a Unix server with Solaris OS 10 installed. I connected to the server remotely and have done some basic Unix Shell programing to help automate many of the functions.
    Here is my question. I want to create a GUI interface to allow uses to run some programs. I have some experience with Java and .NET programing. So I am familiar with object oriented programing. However I am somewhat lost in this new environment and need some guidance.
    My server has the latest java run time environment. Can I create a java app on my PC and move it to the unix server?
    Is C the only programing language for Solaris?
    Thanks in advance.
    Phil

    Phil,
    If you already have shell scripts for these "apps", then the easiest implementation is just to do it in CGI since all you need to do is reformat the output and just use HTML forms to take inputs from the user.
    However if you really wanted to, then you could rewrite your code for implementation in JSP. You could call it with something like :
    java.lang.Runtime rt = java.lang.Runtime.getRuntime();
    rt.getRuntime().exec("/home/user/HelloWorldApp.sh");Make sure that all the environment variables (e.g. PATH) are explicitly set in your shell script since the JSP forks the script with a different user ID which I think is "nobody" and so your script may either (a) run with unexpected results, or (b) appear to not run at all.
    Cheers,
    Erick Ramirez
    Melbourne, Australia

  • Shell script adapter and passwords

    Does anyone know how to get a password into a shell script resource adapter?
    I've set up the "password" attribute in my resource adapter's schema, expecting at least to see the encrypted password in in $WSUSER_password, but it's always empty. Other attributes I add to the resource scheme show up in the scripts as shell variables just fine.
    Side question - the Solaris resource adapter, which looks a lot like the shell script adapter, doesn't even have a password in its schema map, yet it seems to set passwords just fine. What's up with that?
    The ShellScriptResourceObjects55.xml example doesn't seem to deal with passwords at all.

    Hi,
    Have you been able to resolve this issue?
    I am currently working on configuring a Shell Script Resource on my IDM system.
    I am still in the "*Create User"* stage of things (I haven't even begun working with the other Actions : Get User, Get All Users, Delete User, Update User)
    After a month-long period of trial-and-error, and a lot of headaches, I finally succeeded in Creating a new user on my Unix Machine, without any errors
    Except for one thing : for some reason, the user I create is not being given a password!
    A first, I configured the "Attribute Mapping" page to include a "Password" attribute. This did not work.
    Then I removed the password from there (I figured that when I input the user's basic information on the IDENTITY tab in IDM, then the password gets automatically passed to the Unix machine).
    Still, this did not work.
    The funniest thing is : I am not getting any errors. The user is created on my Unix machine. And, also, in my My-SQL database.
    The problem is : when I try to log into that same Unix machine as the user, it does not work, because......of course.....*.there is NO PASSWORD*.
    What could be the problem?

Maybe you are looking for

  • Upgrade ATV Gen2 to version 5.0 (4099)- no longer connects to iTunes home sharing

    I just upgraded my ATV Gen2 to version 5.0 (4099)- because it was suggested by ATV.    After that, I could not connect to my iTunes for music.  Before my upgrade to the ATV, all worked fine. With Apple stuff, I feel like I never have a good understan

  • Query help on totalling 2 account balances

    Hi Experts, I have the following query: SELECT SUM(T0.[SYSDeb] - T0.[SYSCred]) AS 'Production' FROM JDT1 T0  INNER JOIN OJDT T1 ON T0.TransId = T1.TransId WHERE T0.[Account] = '_SYS00000000238' AND T0.[Account] = '_SYS00000000239' If I add the second

  • DVD drive no longer seen after 10.5.1 upgrade

    I upgraded to 10.5.1 on my G5 dual 1.8GHz mac and on reboot the DVD drive is no long visible to the operating system. The drive was working the moment before I did the upgrade doing an install of iWork. Now when the system boots, the DVD drive is on

  • CD Burner will not burn

    I am wondering if my CD burner on my Apple 12 inch Powerbook G4 is broken? I tried burning a CD of a playlist and this is what happened: -insert disc, checking media, click burn disc to start -initializes -starts writing -Canceling disc burn .....thi

  • NetBoot Images not "seen" by MM / MBA when booting with ALT without any local bootable Volumes

    Hello Community! I ran into a very odd Problem trying to start Production and Service Mac Minis or Mac Book Airs from our NetBoot Server holding the ALT Key while the Startup Chime sounds. Image selection is working fine if a local Volume is present.