Script to migrate updates

Hi,
Is there away to generate script from APEX development application to migrate the updates/changes to the production application? I don't want to use the application migration nor the rewrite options.
thanks,
Fadi.

Hello Roger and Tony,
Roger that's really good work but is little bit complicated and time consuming to implement for migration.
Tony, the reason why I did ask for this script is because we have 20 websites using the same application pages and codes but with different customizations, now when we develop the new release of these websites we move the updated version from development to test for testing purposes then to production and hence we rewrite the application 20 times which is really really cumbersome and time consuming, translation files need to be seeded and translated again! Even when we use different databases still the same issue.
We hope next releases of APEX will take into consideration simpler migration process (not a very tight link between application ID and pages components, which leads all time to lose breadcrumbs, translations, pages navigations...etc when migrate page/pages to same application but different ID's).
thanks,
Fadi.

Similar Messages

  • Scripting dB migrations and upgrades

    Dear All,
    I need to know if it is possible to completely script a migration from a version 7.x to 8.x including the installation of the 8.x database and datamigration
    I am also looking for info on scripting updates 7.x to 7.y OR 8.x to 8.y
    Any information is welcome.
    Regards,
    Bjoern Steffens
    Tivoli Systems
    null

    [email protected]
    You can upgrade your DB from v7.x to v7.y use orainst command. And use oracle migration tool migrate v7.y to v8.x.
    null

  • ASSERTION FAILED error while migrating update rules

    Hi all,
    We are migrating the 3.x datasource for sd - lo cockpit.
    Migration steps are as follows...
    1. Make a copy of the infosouce. Activate it.
    2. Migrate transfer rules. Activate it.
    3. Migrate datasource.
    4. Migrate Update rules for the respective info providers.
          But while migrating update rules  ASSERTION_FAILED runtime error occurs.
           the assert condition was violated.
           CL_RSTRAN_TEMPLATE========CP or CL_RSTRAN_TEMPLATE======CM003
    Please help i tried all the means to rectify but none succeds.
    It is occuring for each datasource .
    Thanks in advance.
    aravind

    Hello
    Assertion statement is like a conditional break point in ABAP. When you are trying to migrate the update rules,it is failing with Assertion statement it means there is some error with your update rules. Either the mapping is wrong or the the target to which it is mapped is in inactive state. Please check these and retry your migration.
    Regards,
    Krishna Tangudu

  • How can I script Adobe Reader updates using vbScript, PowerShell or C#?

    I would like to script Adobe Reader updates using vbScript, PowerShell or C#, are there any Adobe API calls I use to do this.  There are several different version that I support and auto update is not an option. I do updates at a specific time of the month. I would like to write a script that would download and install the update for the currently installed version of Adobe Reader (32 or 64 bit) for the version of the OS (32 or 64bit). I can detect the OS version and the Adobe version.  I can download updates but I do not want to hard code anything

    Sabian is correct.
    Most admins download the updates from the ftp site and push via AIP, GPO, SCCM, or some other method whenever it makes sense for them.
    Ben

  • This script is not updating or returning anything..

    This script is not updating or returning anything.. Ive also tried running it as a Stored Procedure but didnt get very far..
    I'm reluctant to remove the line from the get_employee cursor that gets only one record..
    Also, Ive got a couple of 'dbms_output..' lines to catch the employee number but nothing. Can anyone suggest how I at least debug it?
    I can also supply it as Stored Procedure but I didnt really know how to run it and it just hung in UNIX at what looked at the last line number..
    here's the code
    /* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    DECLARE
    -- Debugging/error handling
    -- Work variables
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                     := 0;
       insert_flag                      VARCHAR2 (8);
       job_exists                       VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                     := 0;
       l_date                           DATE                       := SYSDATE;
       l_validate                       BOOLEAN                    DEFAULT FALSE;
       l_ass_obj                        NUMBER;
       l_emp_obj                        NUMBER;
       l_default_code_comb_id           NUMBER                     := 217269;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_organization_id                NUMBER                     := 0;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_effective_end_date             DATE
                                        := TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
       l_no_managers_warning            BOOLEAN;
       l_special_ceiling_step_id        NUMBER;
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_entries_changed_warning        VARCHAR2 (30);
       l_spp_delete_warning             BOOLEAN;
       l_org_now_no_manager_warning     BOOLEAN;
       l_tax_district_changed_warning   BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_business_group_id              NUMBER                     := 0;
       l_person_id                      NUMBER;
       l_assignment_number              VARCHAR2 (35);
       l_style                          VARCHAR2 (4)               := 'GB';
       ip_p_address_id                  NUMBER;
       l_effective_date                 DATE                       := SYSDATE;
       l_date_from                      DATE                       := SYSDATE;
       l_date_to                        DATE                       := NULL;
    -- CURSOR 1 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_get_employee_details
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
    -- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
       emp_rec                          c_check_employee%ROWTYPE;
    -- Cursor 3 to SELECT all existing Employees that DO NOT have a JOB specified.
    /*   CURSOR c_check_emps_job (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.full_name, paas.assignment_id,
                          paas.supervisor_id, paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND paas.job_id IS NULL
                      AND per.person_id = '30188';
       empjob_rec                       c_check_emps_job%ROWTYPE;
    -- Cursor 4 retrieves latest Object Version Number from per_assignments_f table..
       CURSOR csr_ass_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    BEGIN
    -- UPDATE of EXISTING Employees Details from work table..
       FOR v_emp IN c_get_employee_details
       LOOP
    -- determine whether customer already exists
          OPEN c_check_employee (v_emp.employee_number);
          FETCH c_check_employee
           INTO emp_rec;
          IF c_check_employee%FOUND
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
          ELSE
             DBMS_OUTPUT.PUT_LINE (   'Employee No: '
                                   || v_emp.employee_number
                                   || '  has not been found!  '
             insert_flag := 'X';
          END IF;
          CLOSE c_check_employee;
    -- determine which customers already have been assigned a Job
          /*  OPEN c_check_emps_job (v_emp.employee_number);
           FETCH c_check_emps_job
           INTO empjob_rec;
           IF c_check_emps_job%FOUND
          THEN       job_exists := 'X';   -- so we're wanting all those with job_exists := 'X'..
          ELSE        job_exists := 'I';
          END IF;
          CLOSE c_check_employee;
    -- Obtain the most recent Object Version Number..
          OPEN csr_ass_ovn (v_emp.person_id);
          FETCH csr_ass_ovn
           INTO l_ass_obj;
          CLOSE csr_ass_ovn;
    -- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
          IF insert_flag = 'I'
          THEN
             BEGIN
         DBMS_OUTPUT.PUT_LINE (   ' Updating Employee..:' || v_emp.employee_number );
                -- Importing Emp Job, Default Cost Code and Supervisor details --
                Hr_Assignment_Api.update_emp_asg
                   (p_validate                    => l_validate,
                    p_effective_date              => SYSDATE,           -- l_date,
                    p_datetrack_update_mode       => l_datetrack_update_mode,
                    p_assignment_id               => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number       => l_ass_obj,
                    p_supervisor_id               => v_emp.supervisor_id,
                    p_default_code_comb_id        => l_default_code_comb_id,
                    p_concatenated_segments       => l_concatenated_segments,
                    p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                    p_comment_id                  => l_comment_id,
                    p_effective_start_date        => l_date,              --IN/OUT
                    p_effective_end_date          => l_effective_end_date,
                    p_no_managers_warning         => l_no_managers_warning,
                    p_other_manager_warning       => l_other_manager_warning
                Hr_Assignment_Api.update_emp_asg_criteria
                   (p_validate                          => l_validate,
                    p_effective_date                    => SYSDATE,     -- l_date,
                    p_datetrack_update_mode             => l_datetrack_update_mode,
                    p_assignment_id                     => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number             => l_ass_obj,
                    p_organization_id                   => l_organization_id,
    --            p_location_id                       => std_location_id,
    --            p_job_id                            => l_job_id,
    --            p_position_id                       => std_position_id,
                    p_special_ceiling_step_id           => l_special_ceiling_step_id,
                    p_effective_start_date              => l_date,
                    p_effective_end_date                => l_effective_end_date,
                    p_people_group_id                   => l_people_group_id,
                    p_group_name                        => l_group_name,
                    p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                    p_other_manager_warning             => l_other_manager_warning,
                    p_spp_delete_warning                => l_spp_delete_warning,
                    p_entries_changed_warning           => l_entries_changed_warning,
                    p_tax_district_changed_warning      => l_tax_district_changed_warning
                DBMS_OUTPUT.PUT_LINE (   ' Employee Updated..:'
                                      || v_emp.employee_number
    -- End of customer related details
             END;
          END IF;
       END LOOP;
       COMMIT;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          ROLLBACK;
    -- DBMS_OUTPUT.PUT_LINE ( '"No Data Found" for Employee:'  || v_emp.employee_number || SQLERRM );
       WHEN OTHERS
       THEN
          ROLLBACK;
          err_num := TO_CHAR (SQLCODE);
          err_msg := SUBSTR (SQLERRM, 1, 150);
          err_line :=
                'Oracle error (seqno='
             || err_seq
             || ') '
             || err_num
             || ' occurred processing record '
             || TO_CHAR (v_rec_cnt + 1)
             || ' : '
             || err_msg;
          DBMS_OUTPUT.PUT_LINE (err_line);
          INSERT INTO SU_SL_ERRORS
               VALUES (err_num, err_msg, SYSTIMESTAMP);
    END;
    EXIT;

    Hi
    Check if that works for you
    /* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    DECLARE
    -- Debugging/error handling
    -- Work variables
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                     := 0;
       insert_flag                      VARCHAR2 (8);
       job_exists                       VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                     := 0;
       l_date                           DATE                       := SYSDATE;
       l_validate                       BOOLEAN                    DEFAULT FALSE;
       l_***_obj                        NUMBER;
       l_emp_obj                        NUMBER;
       l_default_code_comb_id           NUMBER                     := 217269;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_organization_id                NUMBER                     := 0;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_effective_end_date             DATE
                                        := TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
       l_no_managers_warning            BOOLEAN;
       l_special_ceiling_step_id        NUMBER;
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_entries_changed_warning        VARCHAR2 (30);
       l_spp_delete_warning             BOOLEAN;
       l_org_now_no_manager_warning     BOOLEAN;
       l_tax_district_changed_warning   BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_business_group_id              NUMBER                     := 0;
       l_person_id                      NUMBER;
       l_assignment_number              VARCHAR2 (35);
       l_style                          VARCHAR2 (4)               := 'GB';
       ip_p_address_id                  NUMBER;
       l_effective_date                 DATE                       := SYSDATE;
       l_date_from                      DATE                       := SYSDATE;
       l_date_to                        DATE                       := NULL;
    -- CURSOR 1 - get all Existing Employees (well, for testing purps..
    just Peter Barlow for now..)
       CURSOR c_get_employee_details
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
    -- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
       emp_rec                          c_check_employee%ROWTYPE;
    -- Cursor 4 retrieves latest Object Version Number from per_assignments_f table..
       CURSOR csr_***_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    BEGIN
    -- UPDATE of EXISTING Employees Details from work table..
       FOR v_emp IN c_get_employee_details
       LOOP
    -- determine whether customer already exists
          OPEN c_check_employee (v_emp.employee_number);
          LOOP
          FETCH c_check_employee
           INTO emp_rec;
          IF c_check_employee%FOUND
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
          ELSE
             DBMS_OUTPUT.PUT_LINE (   'Employee No: '
                                   || v_emp.employee_number
                                   || '  has not been found!  '
             insert_flag := 'X';
          END IF;
          END LOOP;
          CLOSE c_check_employee;
    -- Obtain the most recent Object Version Number..
          OPEN csr_***_ovn (v_emp.person_id);
          LOOP
          FETCH csr_***_ovn
           INTO l_***_obj;
          END LOOP;
          CLOSE csr_***_ovn;
    -- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
          IF insert_flag = 'I'
          THEN
             BEGIN
         DBMS_OUTPUT.PUT_LINE (   ' Updating Employee..:' || v_emp.employee_number );
                -- Importing Emp Job, Default Cost Code and Supervisor details --
                Hr_Assignment_Api.update_emp_asg
                   (p_validate                    => l_validate,
                    p_effective_date              => SYSDATE,           -- l_date,
                    p_datetrack_update_mode       => l_datetrack_update_mode,
                    p_assignment_id               => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number       => l_***_obj,
                    p_supervisor_id               => v_emp.supervisor_id,
                    p_default_code_comb_id        => l_default_code_comb_id,
                    p_concatenated_segments       => l_concatenated_segments,
                    p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                    p_comment_id                  => l_comment_id,
                    p_effective_start_date        => l_date,              --IN/OUT
                    p_effective_end_date          => l_effective_end_date,
                    p_no_managers_warning         => l_no_managers_warning,
                    p_other_manager_warning       => l_other_manager_warning
                Hr_Assignment_Api.update_emp_asg_criteria
                   (p_validate                          => l_validate,
                    p_effective_date                    => SYSDATE,     -- l_date,
                    p_datetrack_update_mode             => l_datetrack_update_mode,
                    p_assignment_id                     => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number             => l_***_obj,
                    p_organization_id                   => l_organization_id,
    --            p_location_id                       => std_location_id,
    --            p_job_id                            => l_job_id,
    --            p_position_id                       => std_position_id,
                    p_special_ceiling_step_id           => l_special_ceiling_step_id,
                    p_effective_start_date              => l_date,
                    p_effective_end_date                => l_effective_end_date,
                    p_people_group_id                   => l_people_group_id,
                    p_group_name                        => l_group_name,
                    p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                    p_other_manager_warning             => l_other_manager_warning,
                    p_spp_delete_warning                => l_spp_delete_warning,
                    p_entries_changed_warning           => l_entries_changed_warning,
                    p_tax_district_changed_warning      => l_tax_district_changed_warning
                DBMS_OUTPUT.PUT_LINE (   ' Employee Updated..:'
                                      || v_emp.employee_number
    -- End of customer related details
             END;
          END IF;
       END LOOP;
       COMMIT;
    END;
    EXIT;Thanks

  • Java script--Version 6, update 21.  Is this legitimate?

    I keep getting a message that I MUST! make a critical update to Java script--Version 6, update 21.  The only way I can get out of it is by foreced quit. Is this legitimate?

    Java, rather than Javascript ?
    Post a screenshot, & confirm that Software Update isn't showing any new updates.
    You should also typically Un-check Safari - Preferences - Security - Allow Java unless you're on a trusted site that requires it.

  • Script to install/update files

    i am using package maker to install templates into iweb. i have managed to set the installer up to install the files into the correct locations - but i still need to be able to do one thing.
    in order for the templates to work they need to update a templates.plist file. the only way i can see package maker to do is this by giving it a script.
    how can i create a script that will update the file by adding certain plist lines into alphabetical orderded lists (in the plist file)?
    i cannot replace the existing file because they might all have different templates installed! it sort of needs to merge the files as in file-merger!
    another sidenote - i basically have no knowledge of applescript, so dont be to hard on me
    thanks,
    max

    Typically I would say using the shell command defaults is the way to go, but after looking at the file I don't think that will work. I don't have any templates to test this with, but this should work. It does make up a back up of your templates file to the desktop though just in case.
    Currently it only works with one template, but by making the theme name variable a list and throwing the main logic block in a repeat through that list it would be easy to accomodate multiple files.
    -- This works for a single file. Assuming though Multple files
    -- it wouldn't be hard to make a list
    (* ======== Change These For Your Theme ======== *)
    set _themeName to "TESTING" -- Your Templates Name
    set _themeVersion to "1.1" -- Some sort of version or compatability indicator??
    (* === Nothing here down should need to be changed === *)
    set _keys to {"About Me", "Blog", "Movie", "Photos", "Podcast", "Blank", "Welcome"}
    set _deskPath to path to desktop as Unicode text
    set _backupFolder to "iWeb Backup"
    set _backupPath to _deskPath & _backupFolder
    set _appPath to path to application "iWeb" as Unicode text
    set _plistPath to _appPath & "Contents:Resources:English.lproj:Templates:TemplatesInfo.plist"
    tell application "Finder"
    if not (exists folder _backupPath) then
    make new folder at _deskPath with properties {name:_backupFolder}
    end if
    tell application "Finder" to duplicate _plistPath to _backupPath
    end tell
    set _data to (read file _plistPath)
    (* ====================== MAIN LOGIC BLOCK ======================*)
    repeat with _keyValue in _keys
    set _osString to ¬
    " <key>" & _keyValue & "</key>
    <dict>
    <key>BLCategory</key>
    <string>" & _keyValue & "</string>
    <key>BLEntries</key>
    <dict>"
    set _insertString to ¬
    " <key>" & _themeName & "</key>
    <dict>
    <key>displayName</key>
    <string>" & _keyValue & "</string>
    <key>fileName</key>
    <string>" & _themeName & space & _keyValue & ".webtemplate</string>
    </dict>"
    set _theOffset to offset of _osString in _data
    set _top to text 1 through (_theOffset + (count _osString)) of _data
    set _bottom to text (_theOffset + (count _osString) + 1) through -1 of _data
    set _data to _top & _insertString & (ASCII character 10) & _bottom
    end repeat
    set _osString to ¬
    " <key>sortedThemes</key>
    <array>"
    set _insertString to ¬
    " <dict>
    <key>displayName</key>
    <string>" & _themeName & "</string>
    <key>keyName</key>
    <string>" & _themeName & "</string>
    <key>version</key>
    <string>" & _themeVersion & " Themes</string>
    </dict>"
    set _theOffset to offset of _osString in _data
    set _top to text 1 through (_theOffset + (count _osString)) of _data
    set _bottom to text (_theOffset + (count _osString) + 1) through -1 of _data
    set _data to _top & _insertString & (ASCII character 10) & _bottom
    (* ==================== CLOSE MAIN LOGIC BLOCK ====================*)
    try
    close access file _plistPath
    end try
    set _fileRef to open for access _plistPath with write permission
    set eof _fileRef to 0
    write _data to _fileRef
    close access _fileRef

  • [SOLVED] Script to automatically update source

    Hello,i need a script to use in a pkgbuild that can
    1)check this website http://fsinapsi.altervista.org/code/tre … 091228.zip for new version of the archive.
    2)change the pkgver if a new version is found
    3)download the archive
    Maybe it's something like this (taken from the chromium pkgbuild),but i don't know how i can modify it .. thank you.
    _bldname=chrome-linux.zip
    _bldroot=http://build.chromium.org/buildbot/snapshots/${_bldarch}
    source=('LICENSE.txt' 'chrome-wrapper.patch' "${_realname}.1.gz" "${_realname}.default"
    "${_realname}.desktop" "${_realname}.sh")
    noextract=(${_realname}.1.gz)
    # trick re-determining the build revision and, or entertain the hidden
    # makepkg option --forcever, huh
    if [ -z "$FORCE_VER" ]; then
    msg "Determining latest build revision..."
    newpkgver="$(wget -qO - ${_bldroot}/LATEST)"
    if [ -n "$newpkgver" -a "$newpkgver" != "$pkgver" ]; then
    msg2 "Version found: %s" "$newpkgver"
    FORCE_VER="$newpkgver"
    else
    FORCE_VER="$pkgver"
    fi
    fi
    if [ "$FORCE_VER" = "LATEST" -a "$SOURCEONLY" -eq 0 ]; then
    error "Plz omit '--forcever LATEST'; I'll auto-detect the LATEST ;)"
    exit 1
    elif [ "$FORCE_VER" != "$pkgver" ]; then
    rm -f "$SRCDEST/${_bldname}"
    devel_update
    fi
    build() {
    if [ ! -r "$srcdir/${_bldname}" ]; then
    msg2 "Downloading the latest '$CARCH/$pkgver/${_bldname}'..."
    wget --no-cache -c "${_bldroot}/$pkgver/${_bldname}" \
    -O "$SRCDEST/${_bldname}" || return $?
    ln -fs "$SRCDEST/${_bldname}" "$srcdir/${_bldname}" || return $?
    fi
    Last edited by Xemertix (2010-01-01 18:30:04)

    Xemertix wrote:
    tomk wrote:This is PKGBUILD abuse IMO.
    Yes i know,but this archive is updated frequently and generally there aren't major changes in the new versions,so a pkgbuild with a similar script may work well for some time...
    So would an external script which automatically updates the PKGBUILD on your machine and then uploads it to the AUR? Simplest I can think of would involve bash, wget/curl, and a bit of sed.
    You could even run every X hours if you feel like it.

  • I would like to script Adobe Reader updates using vbScript, PowerShell or C#

    I would like to script Adobe Reader updates using vbScript, PowerShell or C#, are there any Adobe API calls I use to do this.  There are several different version that I support and auto update is not an option. I do updates at a specific time of the month. I would like to write a script that would download and install the update for the currently installed version of Adobe Reader (32 or 64 bit) for the version of the OS (32 or 64bit). I can detect the OS version and the Adobe version.  I can download updates but I do not want to hard code anything

    Adobe Reader supports various industry standard tools for enterprise deployment. Note that a redistribition license might be needed if you are installing on behalf of others.
    Here is the forum: http://forums.adobe.com/community/acrobat/acrobat_enterprise_install
    Look under Getting Started for links to the documents you need.

  • Invalid scripts for migrating ADF11g app Credentials and Policies to WLS

    I following the instructions posted on the OTN to migrate ADF 11g application credential/policies to WLS:
    http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html
    The instructions were written back on Oct 8, 2008, the following things need to be updated for the provided migration scripts "build.xml" & "jps-config.xml" to work properly:
    1. The "oracle" directory no longer exists in the <DOMAIN_HOME>/config. The scripts reference this directory for cwallet.sso and system-jazn-data.xml.
    For the latest ADF 11g R1 installation, the "fmwconfig" directory is the directory where the credential/policies files are stored.
    2. The "build.xml" script copies the following WLST script files from the "<MIDDLEWARE_INSTALLATION_HOME>/modules/oracle.jps_11.1.1/scripts"
    > migrateSecurityStore.py
    > validate.py
    > cmdHelp.py
    For the latest ADF 11g R1 installation, the "<MIDDLEWARE_INSTALLATION_HOME>/jdeveloper/modules/oracle.jps_11.1.1/scripts" does not exist any more.
    I can find the "migrationSecurityStore.py" under "<MIDDLEWARE_INSTALLATION_HOME>/jdeveloper/modules/oracle.jps_11.1.1/common/wlstscripts" directory.
    But I can't find the "validate.py" and "cmdHelp.py" anywhere.
    When I modify the build.xml to use "migrationSecurityStore.py" in the new directory, it failed with errors that related to what parameters need to be passed.
    I am not familiar with WLST so I am not able to fix the script myself.
    Is there a updated version of the build.xml and jps-config.xml that will work for the latest ADF 11g R1 installation ?
    Where can I find out how to call "migrationSecurityStore.py" properly to make the migration script work?

    This is the current documentation on that topic. It supercedes my whitepaper from the 11.1.1.0.0 timeframe.

  • In need of a script that will update tv shows on external hard-drive

    Hi everyone I have a really specific question about scripts. Okay, so my dad regularly downloads various TV shows and movies etc
    and I have a neighbor named Darian who once a week gives me an external hard drive and I update a whole bunch of TV shows. Now my problem is that each time he gives me the hard drive, it takes me about 20-30 mins to update all of the TV shows because they
    are in different TV show folders, I was wondering if it is possible to make a script that when run would automatically copy all of the shows onto Darian's hard drive and then all I have to do is copy the movies which is pretty quick, here's another problem,
    all of the movies and tv shows are not on my computer but on my dad's computer, so when I copy the stuff I have to access his pc through the network and I always have to type his username and password to access his pc, so if someone could tell me if it is
    possible, the code I need and how to run it or pretty much any help, I would be very gratful, thanks in advance (:

    The best we can do is point you at the resource page and let you figure out what it is you are trying to ask:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Rather than ask a whole shopping list of questions rey to figure out the first step that you need to take and ask a question about that..
    I also believe that it would be good for you to get a book on how to use Windows in a home network.  All of what you ask can be done without any scripts.  It is all part of basic WIndows and is designed to make this possible and easy for home users
    but you stil need to study how the system works.
    ¯\_(ツ)_/¯

  • Execute Script - How to Update second node in XML group

    Hi,
    I have an XML variable "myXML" which is set to:
    <root>
         <nodes>
              <node>
                   <value>a</value>
              </node>
              <node>
                   <value>b</value>
              </node>
         </nodes>
    </root>
    Question - within an Execute script, how can I easily access and update the second node value? i.e. change "b" to "c"
    The following fails in Execute Script (although it is possible using an XPath expression in a SetValue
      patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/node[1]/value", "c");
    If I have square brackets in this expression then it fails with a nasty error
    Is there an easy way?

    I tired your script in my sandbox and its working fine without fail.
    I noticed an additional space in your xpath expression
      patExecContext.setProcessDataValue("/process_data/myXML/root/nodes/no de[1]/value", "c");
    Can you remove the space within node tag and try again?
    Nith

  • Import Format script required to update multiple fields

    Further to my previous post yesterday (Import Format script required to work across multiple fields I now need my import script to update multiple (two) fields at the same time, based on criteria set across multiple fields. So far, I can use DW.Utilities.fParseString to assess the values across multiple fields, but I now need to update not only the field in question, but also an additional field at the same time. For example:
    Function TBService(strField, strRecord)
    ' How do I update a second field at the same time?
    Dim strField2 As String
    If Left(strField, 1) = "S" Then
    If DW.Utilities.fParseString (strRecord, 3, 8, ",") = "B1110" Then
    strField2 = "N101"
    Else
    strField2 = "Network N/A"
    End If
    TBService = strField
    Else
    TBService = "Service N/A"
    End If
    End Function
    Is this even possible? Should I be looking at creating an event script which would work post-import? Or can this be done right here in the import script?

    All the logic you require can be encapsulated in the import script for the second field. You don't need to reference the second field in the first import script.
    Edited by: SH on May 2, 2012 5:39 PM

  • Help with centrally locating a script so it updates all fields?

    Hello,
    At work we use a form I built that shows were each employee in assigned for the day.  We have some part-time personal and I've made it so that they show up in red where all normal employee's show up as black.  This works great, my issue is when a new employee is hired or a part-time goes full time I am having to go into each individual field and change this script.   There is 60 fields total so as you would imagine this takes a lot of time to update just one employee.   Below is a sample of the script I am using to designate if the name should be black (full-time) or red (part-time). 
    Is there a way that I can point all fields to one location?  Then I would only have to update one field and it fix them all??
    if (event.value=="BRACKETT" ||  event.value=="Deleted" ||
    event.value=="P. BOWMAN" ||
    event.value=="TALLENT" ||
    event.value=="EDWARDS" ||
    event.value=="MEJIA" ||event.value=="ROGERS" ||event.value=="LASKEY" ||
    event.value=="HOUSER" ||
    event.value=="BROOKS" ||
    event.value=="GORDON") event.target.textColor = color.red;
    else event.target.textColor = color.black;
    Thank-you so much,
    David

    OK, remove all of the code from the document JavaScript and replace it with the code shown below. When you need to update the names in the dropdowns, set up a button and use the following as its Mouse Up script:
    // Mouse Up script for a button
    updateDropdowns();
    You can hide the button and unhide it whenever you need to update, and then hide it again. You can also run that line of code from the interactive JavaScript console, but a button is a bit easier.
    This way, you just have to add names and what color you want for each by editing the oEmpNames object code. When you're done editing the list of names, run the updateDropdowns routine and all of the dropdowns will be updated with the new list.
    // All if the code below goes in a document JavaScript
    // Create an object to associate an employee name with text color to user when selected in a dropdown
    var oEmpNames = {
      "George Washington" : color.black,
      "Thomas Jefferson" : color.red,
      "Abraham Lincoln" : color.black,
      "Teddy Roosevelt" : color.black,
      "John Kennedy" : color.red,
      "Ronald Reagan" : color.black
    // Validate script for dropdowns
    function  validateEmpName() {
      event.target.textColor = oEmpNames[event.value];
    // Function to update dropdowns with list of employee names
    function updateDropdowns() {
      // Create an array of names to populate the dropdown items
      var aItems = [];
      for (var name in oEmpNames) {
      aItems.push(name);
      // Loop through the dropdowns and populate them with names in the array
      for (var i = 0; i < aDropdowns.length; i += 1) {
      getField(aDropdowns[i]).setItems(aItems);
    // Create an array of dropdown names
    var aDropdowns = [
    "Dropdown1",
    "Dropdown4922",
    "Dropdown4923",
    "Dropdown4924",
    "Dropdown490",
    "Dropdown482",
    "Dropdown470",
    "Dropdown4600",
    "Dropdown491",
    "Dropdown480",
    "Dropdown471",
    "Dropdown461",
    "Dropdown492",
    "Dropdown481",
    "Dropdown472",
    "Dropdown4620",
    "Dropdown493",
    "Dropdown483",
    "Dropdown473",
    "Dropdown463",
    "Dropdown494",
    "Dropdown48",
    "Dropdown47",
    "Dropdown460",
    "Dropdown47011",
    "Dropdown46011",
    "Dropdown47211",
    "Dropdown4621",
    "Dropdown47311",
    "Dropdown46311",
    "Dropdown2",
    "Dropdown4",
    "Dropdown5",
    "Dropdown11",
    "Dropdown4925",
    "Dropdown4926",
    "Dropdown4927",
    "Dropdown4901",
    "Dropdown4821",
    "Dropdown4701",
    "Dropdown4601",
    "Dropdown4911",
    "Dropdown4801",
    "Dropdown4711",
    "Dropdown4611",
    "Dropdown4921",
    "Dropdown4811",
    "Dropdown4721",
    "Dropdown462",
    "Dropdown4931",
    "Dropdown4831",
    "Dropdown4731",
    "Dropdown4631",
    "Dropdown4941",
    "Dropdown4813",
    "Dropdown4712",
    "Dropdown46",
    "Dropdown47019",
    "Dropdown460116",
    "Dropdown472129",
    "Dropdown462186",
    "Dropdown473115",
    "Dropdown463158"

  • Scheduling an Apple Script [eyeTV DVB Update] more...

    Like many other eyeTV Users, I have opted out of the iceTV [Australia] annual subscription, and am using the DVB Program Guide.
    But eyeTV does not support scheduled updates of the DVB Guide, only subscription services [annoying].
    Recently ctzsnooze proposed an Apple Script which if run periodically would update of the eyeTV DVB Program Guide.
    https://discussions.apple.com/thread/6043805
    And a few years ago Camelot proposed a means to schedule a script to run periodically.
    https://discussions.apple.com/thread/673340
    After a little testing, I believe I have refined this script to properly run to a regular schedule.
    Here is a copy of my updated version of Camelot's test routine: Note the following...
    a) the initial date must be set in the future, otherwise the idle loop will run every five seconds [idle return is negative].
    b) use >=, not simply > in the idle loop, otherwise the scheduled run time becomes offset [+5 * minutes in this example].
    c) I found the display notification a really neat way to log progress of the script while testing, and have now incorporated a Notification into my file Script for the eyeTV Program Schedule Update, to confirm it has run once a day, or hour.
    d) Compile then Save As, Application, and Stay open after run handler.  The first time you run it, you will need to authorise it...
    property runTime : missing value
    on run
              set runTime to date "Wednesday, 07 May 2014 13:45:00"
              display notification "Update Script initialised at: " & runTime
              display notification "Time now is: " & (current date)
    end run
    on idle
              if (get current date) ≥ runTime then
                        display notification "Update Script ran at: " & (current date)
                        set runTime to runTime + 5 * minutes
                        display notification "Next execution of Update Script will be at: " & runTime
              end if
              display notification "Script Return Value is: " & (runTime - (get current date))
              return (runTime - (get current date))
    end idle
    Here is an example run...
    And here is my update to Ctzsnooxe's version of the eyeTV DVB Program Guide auto update script, and a copy of the resulting Notifications...
    Delete the display notifications you do not wish to see from the script, once you prove the script.
    property runTime : missing value
    on run
              set runTime to date "Wednesday, 07 May 2014 15:00:00"
              display notification "eyeTV Programs Update Script initialised at: " & runTime
      display notification "Time now is: " & (current date)
    end run
    on idle
              if (get current date) ≥ runTime then
        display notification "eyeTV Programs Updated at: " & runTime
        tell application "EyeTV"
            activate
        end tell
        tell application "System Events"
          tell process "EyeTV"
            keystroke "g" using command down
            delay 1
            click (pop up button 1 of window 1)
            delay 1
            click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
          end tell
        end tell
        set runTime to runTime + 1 * days
        display notification "Next Update of eyeTV Programs will be at: " & runTime
              end if
              display notification "Script Return Value is: " & (runTime - (get current date))
              return (runTime - (get current date))
    end idle

    Stephen,
    I ran into some scheduling issues after Wake from Sleep, and after some fiddling around, made the following changes.
    This version is set up to run every hour [so I could test error handling, window, wake, and sleep issues]
    -- eyeTVAutoUpdate (Hour) Script:
    -- [for testing, setup to run every hour...]
    -- When proper operation is confirmed,
    --       Set Systems Preferences, Energy Saver, Schedule, Startup or Wake, to
    --       Every Day, at 15:45hr, and
    --       Set eyeTV Programs Update Script to run at 16:00hr every day
    property runTime : missing value
    on run
       set runTime to (get current date)
       set (time of runTime) to 10 * hours
      repeat while runTime < (get current date)
         set runTime to runTime + 1 * hours
      end repeat
      display notification "eyeTVAutoUpdate Script initialised: " & return & (current date)
    end run
    on idle
       try
       tell application "EyeTV"
          activate
          close controller window
       end tell
       tell application "System Events"
          tell process "EyeTV"
             keystroke "g" using command down
             delay 1
             click (pop up button 1 of window 1)
             delay 1
             click menu item "Go to Now" of menu 1 of pop up button 1 of window "EyeTV Programs"
             delay 1
             click (pop up button 1 of window 1)
             delay 1
             click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
          end tell
       end tell
       display notification "eyeTV Programs Updated: " & return & (current date)
    on error errorMessage number errorNumber
       display notification ("An error occurred: " & errorNumber as text) & return & "Description: " & errorMessage as text
    end try
    repeat while runTime < (get current date)
       set runTime to runTime + 1 * hours
    end repeat
    display notification "Next Update of eyeTV Programs: " & return & runTime
    display notification "eyeTVAutoUpdate Script Return: " & (runTime - (get current date))
    return (runTime - (get current date))
    end idle
    Although I have not yet tested it, simply change the last repeat while loop time interval [now one hour] to suit, say to 8 or 24 hours.
    For example...
    repeat while runTime < (get current date)
       set runTime to runTime + 8 * hours
    end repeat
      repe

Maybe you are looking for

  • Service Entry Sheet in ECC 6.0 shipment costing security object?

    Does anyone know what security object is being checked during service entry sheet creation?  When I run the shipment cost create process in foreground (RV56TRSL) VI04, the program creates and settles the shipment cost, but in background only the ship

  • SAP R/3 Integration to Oracle

    Does any one know that if there is any tools that can help integrate SAP R/3 to Oracle? For testing purpose, can Oracle Apllication Server 10g be installed on Windows XP instead of Windows Server?

  • Queries on a cube?

    Is there any option ot check the queries available on a cube. For ex: I have cube ABC in RSA1 I wanted to know whether any query exists for that cube or not.If exists what is the name of the query?

  • Two step serial number verification in PreUUT

    Hello all, I am using sequential model and trying to modify PreUUT so that I can implement two step verification for serial number using "Do While" loop with Message Popup. e.g. if the operator doesn't enter matching serial number it will loop again

  • User Rights Assignment should WLi have

    Hi: No matter what system user I try to use I can't start the WLserver for WLi. What am I missing? or what rights should be assigned system user for WL to start? A system user name and password. WebLogic Server user names and passwords can contain an