AppleScript for setting Permissions Automatically -help needed

Hello -
I am trying to create an applescript that can run automatically each time a user signs into a Mac set up for multiple (non admin) users that will take a folder on the drive and set permissions for all sub folders and files to read/write for everybody. I want the script to essentially do the equivalent of checking to "apply to enclosing items" checkbox.
I know very little about applescript and have not found a good tutorial online yet. Does anybody already have a script that will do this or know how to create one and set it up so that it will run automatically each time a user signs in? I think that I can probably add whatever script is created to the login items for the user to do that. But, don't I also have the problem of the script needed admin rights to reset permissions?
Any help would be appreciated.

What exactly are you wanting to do? There are shared folders that already exist (public and private), and Access Control List entries can be set to allow for custom access. Is this for a temporary directory or something like that that gets created when a user logs in?

Similar Messages

  • Recall for my problem urgent help needed

    Hi friends,
    I am a new DB administrator and I have faced a problem in our database.
    Here i will explain our architecture and i will state the problem.
    In my org. we have database server responsible for keeping the DB itself. Another server which is the main server is responible to control the access to the network and making and storing DB backups using a third party software (Net Backup Software). The backups are kept in tapes accessed by main server using tapes robot.
    Our backup policies is that the software makes full backup every week and a incremental dialy backups of the DB. The retention of each backup is two weeks. All servers have been shutted down during vacations.
    The problem is that when we came from two weeks vacation, users found that the DB is in old state and we lost the most recent valid state. I tried all my best since month ago to do recovery. I decided the point of time to restore and I also use the SCNs but I could'nt reach a solution. I used Net backup, Rman, EM but without a result.
    When i check NetBackup console I find a backup available since 28 of July 2010. Actually the changes are made after this date and now the DB state is older thatn this date. the question is: WHER HAVE THE CONSEQUENT CHANGES GONE? around one mounth of work has been lost..
    the oracle shows me the following message:
    The RMAN script for the recovey is:
    Run {
    allocate channel t1 type 'sbt_tape';
    set until time to_date('28-Jul-2010 00:00:00', 'DD-MON-YYYY HH24:MI:SS');;
    restore database;
    recover database;
    release channel t1;
    RMAN-00571: ========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ============
    RMAN-00571: ========================================================
    RMAN-03002: failure of restore command at 21/09/2010 11:01:26
    RMAN-06100: no channel to restore a backup or copy of datafile 20
    RMAN-06100: no channel to restore a backup or copy of datafile 19
    RMAN-06100: no channel to restore a backup or copy of datafile 18
    RMAN-06100: no channel to restore a backup or copy of datafile 17
    RMAN-06100: no channel to restore a backup or copy of datafile 16
    RMAN-06100: no channel to restore a backup or copy of datafile 15
    RMAN-06100: no channel to restore a backup or copy of datafile 14
    RMAN-06100: no channel to restore a backup or copy of datafile 13
    RMAN-06100: no channel to restore a backup or copy of datafile 12
    RMAN-06100: no channel to restore a backup or copy of datafile 11
    RMAN-06100: no channel to restore a backup or copy of datafile 10
    RMAN-06100: no channel to restore a backup or copy of datafile 8
    RMAN-06100: no channel to restore a backup or copy of datafile 6
    RMAN-06100: no channel to restore a backup or copy of datafile 5
    RMAN-06100: no channel to restore a backup or copy of datafile 4
    RMAN-06100: no channel to restore a backup or copy of datafile 3
    RMAN-06100: no channel to restore a backup or copy of datafile 2
    RMAN-06100: no channel to restore a backup or copy of datafile 1
    the backup script is as follows:
    DB server = jewcsrv3.
    Main server = jewcsrv1.
    RUN {
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo %BACKUP_TYPE%
    echo FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
    echo DATABASE;
    echo RELEASE CHANNEL ch00;
    echo # Backup Archived Logs
    echo # For an offline backup, remove the following sql statement
    echo sql 'alter system archive log current';
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo FORMAT 'arch-s%%s-p%%p-t%%t'
    echo ARCHIVELOG
    echo ALL
    echo DELETE INPUT;
    echo RELEASE CHANNEL ch00;
    echo # Control file backup
    echo ALLOCATE CHANNEL ch00
    echo TYPE 'SBT_TAPE';
    echo SEND 'NB_ORA_CLIENT=jewcsrv3,NB_ORA_SERV=jewcsrv1';
    echo BACKUP
    echo FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
    echo CURRENT CONTROLFILE;
    echo RELEASE CHANNEL ch00;
    echo }
    Could any one please help me to solve this problem. If there is no solution what could he suggest to do now to have a valid state and for future to avoid this problem.
    Thanks alot..
    PLEASE REPLY AS SOON AS POSSIBLE
    Edited by: 799539 on Oct 4, 2010 12:35 AM

    Your BACKUP script does set the NetBackup parameters for the Tape Channels.
    However, your RESTORE script does not specify the NetBackup parameters -- so Oracle doesn't know which channel to use for the Restore.
    You need to add the NetBackup parameters in the RESTORE.
    However, this is suprising :
    The problem is that when we came from two weeks vacation, users found that the DB is in old state and we lost the most recent valid stateA database will NOT EVER "go back to an old state" until and unless someone has restored an old backup. If the servers were shutdown for two weeks, who would have restored the database. If the servers were shutdown, how would Oracle have automatically gone back to an old stats ? There must have been some manual actions.
    Hemant K Chitale

  • ONKYO TX-SR805 Set-up Menu HELP Needed

    This is a LONG post, but I would appreciate if you would read it and respond to it.  The settings That are setup might not be the CORRECT settings.  If you think a different setting should be made, please let me know.
    Also right now I only have 2 front speakers (NHT VT-1A), 1 middle( NHT VT-1C), and a NHT SW12 Subwoofer.  I will be hooking up 2 or 4 more speakers for the REAR.
    Here are the settings on my TX-SR805 receiver on the set-up menu.  I could use some help to see if they need set to something else.
    2.2 Speaker Config
          Subwoofer       yes
          Front            70Hz
          Center          90Hz
    LPF of LFE        80Hz THX
    2.6 THX Audio Setup
           THX subwoofer  YES   I don't know if mine is or not
           BGC                    OFF  Not sure what this BGC means
    3. AUDIO ADJUST
    3.1  Tone Control
           Front    Bass      -1dB
                        Treble   +1dB
          Center  Base      +2dB
                        Treble   +7db
         Subwoofer Base  +7
    3.2 DIRECT
          Delay Enable
          DSD                NO   Not sure what DSD is 
    3.3 MULTIPLEX/MONO
          Multiplex
          Input CH       Main/Sub
          Mono
          Input CH         L+R
          Output Speaker  L/R
    3.4 PLIIx/Neo:6
            PLIIx Music   (2ch input)
            Panorama        ON
            Dimension       +1
            Center Width    3
    Neo: 6 Music
            Center Image   5
    3.5 DOLBY EX
            Dolby EX        AUTO
    3.6 THEATER-DIMENSIONAL
            Listening Angle   Narrow
    3.7 LFE LEVEL
            Dolby Digital      -10dB
            DTS                     -10dB
            Multich PCM      -10dB
            Dolby True HD   -10dB
            DTS-HD Master Audio  -10dB
            DSD                     -10dB
    4. SOURCE SETUP
           CABLE/SAT
    4.1  INTELLIVOLUME     +4Db
       .2 A/V SYNC            0 msec
       .3  NAME EDIT         Blank
    5.   LISTENING MODE PRESET
    5.1 DVD
           Analog/PCM      NOT SURE WHAT TO SET HERE
           Dolby Digital      NOT SURE WHAT TO PUT HERE
           NOT SURE WHAT TO PUT FOR ANY OF THESE LISTENING MODE PRESET
    5.8 TUNER (ANALOG)      Neural THX 5.1 is set on mine. Is this correct?
             CD                           ?
    6.  MISCELLANEOUS
    6. 1  VOLUME SETUP
              Volume Display              Relative
               Muting Level               -40dB
               Maximum Volume       +10dB
               Power on Volume        -22dB
               Headphone Level        +2dB
    6.2  OSD SETUP
               Immediate Display       OFF
               Monitor Type              16:9
               Display Position           TOP
    7.  HARDWARE SETUP
    7.4   ANALOG MULTICH
               Subwoofer Input Sensitivity    0
    7.5   HDMI
            ALL under here are     ENABLE
    Solved!
    Go to Solution.

    I gave you some answers in your original post. I wish you didn't start a new one. Here is what I posted.
    Re: ONKYO TX-SR805 Set-up HELP Needed[ New ]
    Options
    Mark as New
    Bookmark
    Subscribe
    Subscribe to RSS Feed
    Highlight
    Print
    Email to a Friend
    Report Inappropriate Content
    01-21-2010 08:24 AM
    Unfortunately this is very difficult because the top half of your post, your really the only one that can answer what the setup should be.  The adjustments are made based on the acoustics of your room and how everything sounds noone can really give you info on it because every house, and room has different acoustics.  The walls, insulation, carpet or bare floors, basement or main floor are just some examples of what can make a difference in sound reproduction.   By the way NHT (Now Hear This) are excellent speakers.  For bass and treble, the music I listen too requires a high treble content so I usually have it at 7 out of 10 but my bass is at 4 out of 10.   The sub base should be fine where it is.
    Did your receiver come with an Audessy mic for calibration.  I would use that for a basic setup and go from there I am not sure if on your unit it will do frequecy but I think it did.
    Your volume settings look fine again personal preference there is right or wrong.
    For you listening mode Preset  you should have an auto setting I am at work so it may take a coule of hours for me to get back to you as I have to go through your manual and see what you would set it up with so please bare with me. I will list the info as I read it so it may not be in the order you have it.
    I will have to make a second post since I can't go back and edit this one.

  • For Each Loop: Enumerator Configuration In the For each loop Editor Help needed

    Hi All,
    I have a package that runs and updates a table with everytime someone adds a flat file in the source folder. One of the requirement is to upload files with the following
    ACA Flat files will have a naming convention of “ACA_ccyy_<julian date>”  : How can I add this?
    Under Files this is how I have setup the qualifies "ACA_*.*"
    Is there anyway to pass the entire naming convention in the file section? If so how can I ?
    Please help?
    FM

    As you have ACA_*.* set in Files Filter, it will return all the files from the folder which start with ACA_.
    You can have one dummy Sequence Container inside FE Loop Container. Connect it to your starting task and do right click on Precedence Constraint and write the expression the way you want by using SSIS functions. If the expression is evaluated to True only
    then it will go to the next task.
    In this way you can skip Non-ACA files.
    Please refer:
    SSIS Skip Certain Files in a For Each Loop
    - Vaibhav

  • DMZ configuration WRT610N for 2 IP addresses Help needed

    How can I set up DMZ for 2 IP addresses in WRT610N. Please help. Thanks

    How would I solve this problem then. I have to servers on the network. One is Linux and other one is Windows. I'm buying block of 5 IP addresses from provider. One is assingned to .250 internal address and other one is .240. I would like to assign public addresses to them. At my work we have Neutopia box and have about 4 servers behind it with internal IP addresses. In netopia box have a table populated with addresses internal and external. Please, help. Thanks 

  • Best Export / Video settings for Premiere Pro. Help Needed.

    What's the best settings when you want to export a video from Premiere Pro for the web or otherwise. Best settings = good quality video and LOW file size.
    Benchmark : The videos on Apple Trailers. Check them out at http://www.apple.com/trailers
    The trailers are of high quality video, great sounds, and the Large sizes all fall under the 25MB mark. Any ideas on HOW this is done and what
    settings in Premiere Pro CS3 might be able to replicate such standards?
    Any help is appreciated. I normally use Encoder and export using H264 but that always seems to have an Audio lag. Any similar issues?
    Thanks a mil!

    I understand that better quality = bigger file size. That's true in most cases, but there is a way around it, I'm just not sure what that way is. As I mentioned in the original post, the benchmark is http://www.apple.com/trailers . The non-HD videos on any movie page on that site hardly ever exceeds the 25MB mark. The videos are 2-3minutes long, and while they may not be top-notch BD visuals, they look way better than 95% of the stuff that's streamed off the net.
    That's why I asked if anyone had any ideas on how to replicate something like that. Say I had a avi file of great quality, shot with a Panasonic DV Cam. I Capture the footage, do whatever I have to in Pr, and the result is now a 3minute video. I want it exported to a Quicktime file, I want it to look visually pleasing like the trailers on Apple, and I want it to fall under 25MB. I have tried H.264 encoding, regular Quicktime, and Quicktime via Encoder. Nothing reaches the expected quality.
    For more examples visit http://www.passionpictures.com.my/pages/recent.aspx and download those simple 30second clips. All Quicktime, mostly under 5.5MB. If Pr can't do it, then I don't know what can...so I'm sure Pr can do it.
    Problem is, how? Experimentation is definitely a way to go, I get that. But on the basis of the scenario given above...how is it done?

  • Script for export in datapump  -- help needed !!!

    hello all,
    i am using the following script as batch file in my database for export
    script:
    =========
    exp name/password file=d:\exp\%date%.dmp full=y log=d:\exp\exp.log an this will replace the first file(monday) on next monday.
    similar way i need a script for data pump for full database export using datapump
    thanks ,
    gold

    login to database as a dba and create directory for your dumpfile path.
    create directory dpump_dir as 'd:\exp';
    and then use the below script for export.
    expdp username/password full=y directory=dpump_dir dumpfile=%date%.dmp logfile=exp.log

  • SQL Exception: Result Set Closed. Help Needed Pls...

    Hi
    I am trying to insert the name field into �TestNoName� table which is randomly retrieved from �UniqueName� table. I am getting SQL exception: result set closed. Please look at the given code and let me know what�s wrong with my code:
    Also please guide me about entering unique (serial numbers) dynamically into
    database using Java. I have to enter customer details into database at some time and some customers details after some time but the customers should be given serial numbers.
    Thank you in advance!
    Ravi
    Here is the Code:
    String query1 = "Select Name from Unique_Names";
    String query2 = "SELECT Number, Name FROM TestNoName";
    Statement stmt;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,"","");
    System.out.println("Successfully Connected to Database");
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stmt.executeQuery(query1);
    ResultSet rs2 = stmt.executeQuery(query2);
    int count=0;
    while (rs.next()) {
    count++;
    rs.beforeFirst();
    for(int i = 0; i < 10; i++) {
    int randomrow = random.nextInt(count)+ 1;
    System.out.println(randomrow);
    String Name2 = rs.getString("Name");
    rs2.moveToInsertRow();
    rs2.updateInt("Number",i);
    rs2.updateString("Name",Name2);
    rs2.insertRow();
    System.out.println("Exececuted SQL Statement- Inserted One Record");
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    }

    I am trying to insert the name field into
    �TestNoName� table which is randomly retrieved from
    �UniqueName� table. I am getting SQL exception:
    result set closed. Please look at the given code and
    let me know what�s wrong with my code: Post the actual exception, not some paraphrase of it. Oh, and let us know which line it actually refers to in the code.

  • Error: No batch input data for screen SAPMZVKDIALOGDEMO 1000 Help Needed

    Hi Experts!
    I wrote a program for BDC. I am attaching the code herewith. When i am trying to process the session in SM35, i was getting the error: No batch input data for screen SAPMZVKDIALOGDEMO 1000. Can anyone please tell me, what am i doing wrong.
    Thanks.
    REPORT  zvkbdcdemo01.
    DATA: bdc_tab LIKE bdcdata OCCURS 6 WITH HEADER LINE.
    DATA: session LIKE apqi-groupid VALUE 'Session #1'.
    CALL FUNCTION 'BDC_OPEN_GROUP'
      EXPORTING
        client                    = sy-mandt
    *   DEST                      = FILLER8
        group                     = session
    *   HOLDDATE                  = FILLER8
    *   KEEP                      = FILLER1
        user                      = sy-uname
    *   RECORD                    = FILLER1
    *   PROG                      = SY-CPROG
    * IMPORTING
    *   QID                       =
    * EXCEPTIONS
    *   CLIENT_INVALID            = 1
    *   DESTINATION_INVALID       = 2
    *   GROUP_INVALID             = 3
    *   GROUP_IS_LOCKED           = 4
    *   HOLDDATE_INVALID          = 5
    *   INTERNAL_ERROR            = 6
    *   QUEUE_ERROR               = 7
    *   RUNNING                   = 8
    *   SYSTEM_LOCK_ERROR         = 9
    *   USER_INVALID              = 10
    *   OTHERS                    = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM fill_bdc_tab.
    CALL FUNCTION 'BDC_INSERT'
      EXPORTING
        tcode                  = 'ZVKTR001'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
    *   SIMUBATCH              = ' '
    *   CTUPARAMS              = ' '
      TABLES
        dynprotab              = bdc_tab
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    * EXCEPTIONS
    *   NOT_OPEN          = 1
    *   QUEUE_ERROR       = 2
    *   OTHERS            = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *&      Form  fill_bdc_tab
    *       text
    FORM fill_bdc_tab.
      REFRESH bdc_tab.
      PERFORM populate_bdc_tab USING:
      '1' 'SAPMZVKDIALOGDEMO' '1000',
      ' ' 'SFLIGHT-CARRID' 'LH',
      ' ' 'SFLIGHT-CONNID' '0400',
      ' ' 'SFLIGHT-FLDATE' '07/07/2007',
      ' ' 'SFLIGHT-PRICE' '1982',
      ' ' 'SFLIGHT-CURRENCY' 'EUR',
      ' ' 'SFLIGHT-PLANETYPE' 'A310-300',
      ' ' 'BDC_OKCODE' 'CREA'.
    ENDFORM.                    "fill_bdc_tab
    *&      Form  POPULATE_BDC_TAB
    *       text
    *      -->FLAG       text
    *      -->VAR1       text
    *      -->VAR2       text
    FORM populate_bdc_tab USING flag var1 var2.
      CLEAR bdc_tab.
      IF flag = '1'.
        bdc_tab-program = var1.
        bdc_tab-dynpro = var2.
        bdc_tab-dynbegin = 'X'.
      ELSE.
        bdc_tab-fnam = var1.
        bdc_tab-fval = var2.
      ENDIF.
      APPEND bdc_tab.
    ENDFORM.                    "POPULATE_BDC_TAB

    This normally means that you are trying to insert data on a screen for which a particular field is not available.
    So check screen number, screen fields and report name. In case of screen fields, use F1, F9 (technical information), and check the name of the screen field for batch processing (all the way at th bottom of the pop-up). This can differ from actual name of the screen field.
    If all this is ok, try to create a recording of the transaction with SM37.

  • Setting permissions - all files need to be 644/dirs 755 [SOLVED]

    I have some files that are in a complex dir tree under:
    /media/data
    /media/data/project1
    /media/data/project1/sub1
    /media/data/project1/sub2
    /media/data/project1/sub100
    /media/data/project2
    ...etc. etc.
    Basically, I need all the dirs to be 755 but all the files to be 644.  Obviously I can `chmod -R 755 /media/data` but how can cause all the files to be 644 while retaining the dirs as 755?
    Last edited by graysky (2010-02-14 21:34:43)

    Allan wrote:chmod 755 $(find /media/data -type d)
    chmod 644 $(find /media/data -type f)
    find /media/data -type d -exec chmod 755 {} ;\
    find /media/data -type f -exec chmod 644 {} ;\
    Last edited by SemiBz (2010-02-14 21:13:20)

  • Coding for editing... help needed

    Hello,
    My mate has filmed my wedding on an HD TV camera and is asking me what coding to put the rushes onto so I can edit them on Imovie HD6.
    Can anyone tell mw what I should be telling him? I've looked around the Mac site and it seems to suggest using Mpeg4, but I'm guessing that will be pretty low quality?
    Any advice much appreciated!

    Welcome to the discussions.
    iMovie 6HD edits HD in "Apple Intermediate Codec" ("AIC") and the footage should be in 720p or 1080i.
    Note that if you want to burn a DVD, that's Standard Definition. SD footage should be in DV, in your case DV-PAL.

  • Unable to set permissions for archiving

    Using G5 iMac, OS 10.4.11 with iDVD 6. I have followed the instructions 1 thru 3 in help for setting permissions to archive a dvd project without any problem. However the last instruction is "Click Apply to enclosed items". I can not find anywhere to do this. Any help will be greatly appreciated. Regards from Ireland.

    You are right. There is no place to "click apply to enclosed items". Just ignore that instruction, as it seems to be unnecessary. You already set your permissions by doing steps 1-3.

  • How to set up automatic cache purge

    I am using the event polling table for setting up automatic cache purging.
    I have created a table 'event polling table' in the database with the following fields:
    CATALOGNAME
    DATABASENAME
    OTHER
    SCHEMANAME
    TABLENAME
    UPDATETIME
    UPDATETYPE
    LOAD_ID
    with TABLENAME, UPDATETIME, UPDATETYPE as non-nullable fields.
    Then I have imported the table to the physical layer of the rpd, set up 'Oracle BI Event tables' in the Utilities as this table and set up a polling frequency of 15min.
    I have created a report with 2 columns (DeptID, Saleamt) from 2 tables (Department, Sales) respectively. Both these tables were made 'cacheable' in the physical layer with cache never expires. Now the saved report is ran by logging in once again. So a cache entry is registered. My NQSCONFIG file enables cache.
    I have added these 2 tables to the event polling table after the cache entry was registered. Technically after 15min, this cache should be purged automatically as the request created was from these 2 tables. But that does not happen. Even after half hr when I log in and run this report a cachehit occurs as cache still persists. My cache folder is the C:\OracleBIData\cache. I also check entries in the Repository (Manage ->cache).
    Please let me know where am I making a mistake.
    My goal is to get cache purged automatically every time there's an entry in the EPT. (To test when I create an entry in the EPT, I give the tablename and updatetype (=1), the updatetime is obtained automatically as sysdate.
    Thanks
    ===================================================
    For reference I have copied an earlier posting here:
    ===================================================
    lets look at all your questions one by one
    As the event polling table gets a row added for each table whose data is updated at the end of each ETL run, when exactly does the BI server purges cache related to that table - As soon as the polling happens and it finds a new record in your table
    Lets say I set up a polling frequency (in Tools -> Utilities -> Oracle BI Event Tables) to every 60 minutes. At the end of every 60 minutes does the BI server restart by itself or does the polling take place without restart. - Polling takes place only when the server is up (there is no need to restart)
    At the end of every 60 minutes does the BI server poll the event polling table whether or not any new rows are added to it? -(Yes )
    What exactly happens when a new record is added to the event polling table in the database. - (The cache is purged )
    If at the end of the ETL run data in 3 tables has changed, would 3 records be added to the event polling table in the database. - (yes , after the polling happens)
    Let me know if you have more questions ...
    Another way you can set it up is to create a batch file which would purge a table as its updated (use a procedure to capture the tables which have a value of 1 for update_type or use triggers to populate a table with these table names ) ...once purged you can set up your cache by using ibots (use javascripts) .
    =============================================================================

    I seem to have all the steps running except #3 - which is clearing the cache!
    select T54927.UPDATE_TYPE as c1,
    T54927.UPDATE_TIME as c2,
    T54927.DB_NAME as c3,
    T54927.CATALOG_NAME as c4,
    T54927.SCHEMA_NAME as c5,
    T54927.TABLE_NAME as c6
    from
    MPO_OWNER.MPO_EVENT_POLLING T54927
    where ( T54927.OTHER in ('') or T54927.OTHER is null )
    minus
    select T54927.UPDATE_TYPE as c1,
    T54927.UPDATE_TIME as c2,
    T54927.DB_NAME as c3,
    T54927.CATALOG_NAME as c4,
    T54927.SCHEMA_NAME as c5,
    T54927.TABLE_NAME as c6
    from
    MPO_OWNER.MPO_EVENT_POLLING T54927
    where ( T54927.OTHER = 'cac7057v' )
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121787>>, Close Row Count = 1, Row Width = 384 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Sending query to database named Event Polling (id: <<121830>>):
    insert into
    MPO_OWNER.MPO_EVENT_POLLING("UPDATE_TYPE", "UPDATE_TIME", "DB_NAME", "CATALOG_NAME", "SCHEMA_NAME", "TABLE_NAME", "OTHER") values (1, TIMESTAMP '2009-03-27 16:59:19', 'Trading', 'remedy', 'MPO_READ', 'MPO_POSITION_DATE_CHOICES', 'cac7057v')
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121830>>, Close Row Count = 0, Row Width = 0 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121830>> DbGateway Exchange, Close Row Count = 0, Row Width = 0 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121830>> DbGateway Exchange, Close Row Count = 0, Row Width = 0 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121787>> DbGateway Exchange, Close Row Count = 1, Row Width = 384 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121787>> DbGateway Exchange, Close Row Count = 1, Row Width = 384 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Sending query to database named Event Polling (id: <<121831>>):
    select T54927.UPDATE_TIME as c1
    from
    MPO_OWNER.MPO_EVENT_POLLING T54927
    where ( T54927.OTHER = 'cac7057v' )
    group by T54927.UPDATE_TIME
    having count(T54927.UPDATE_TIME) = 1
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121831>>, Close Row Count = 1, Row Width = 16 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121831>> DbGateway Exchange, Close Row Count = 1, Row Width = 16 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Execution Node: <<121831>> DbGateway Exchange, Close Row Count = 1, Row Width = 16 bytes
    +++Administrator:fffe0000:fffe021b:----2009/03/27 17:02:14
    -------------------- Sending query to database named Event Polling (id: <<121875>>):
    delete from
    MPO_OWNER.MPO_EVENT_POLLING where MPO_OWNER.MPO_EVENT_POLLING.UPDATE_TIME = TIMESTAMP '2009-03-27 16:59:19'
    What am I missing? My NQServer.log shows this:
    The physical table Trading:remedy:MPO_READ:MPO_POSITION_DATE_CHOICES in a cache polled row does not exist.
    Any thoughts are appreciated.
    Thanks
    Mano

  • How to set permissions on devicemapper block device

    I'm setting up a new RAC on RHEL5.1 using device mapper for multipath functionality.
    How should I set the permissions for the block devices I'm going to use for ocr, voting and asm?
    /dev/mapper/ocr1
    /dev/mapper/voting1
    etc.
    Regards
    Jon-Arne Storelv

    Markus,
    You are right about udev changing drastically between RHEL 4 and RHEL 5. The paper I referred to does include some guidelines for setting permissions for RHEL 5 as well. Here are some relevant extracts from the same pdf document:-
    # From udev.permissions section
    This file was obsoleted in later versions of the 2.6 kernels such as SLES10, RHEL5 and
    Oracle Enterprise Linux 5 (OEL5), that functionality was merged into the rules files, which is explained later in this paper
    ...and later you will find this example in the document
    For RHEL5, OEL5, SLES10
    • Create a file /etc/udev/rules.d/99-raw.rules with the following content
    with the following content
    KERNEL=="raw[1-2]*", GROUP="oinstall", MODE="640"
    KERNEL=="raw[3-5]*", OWNER="oracle", GROUP="oinstall", MODE="660"
    /etc/udev/rules.d/50-udev.rules on Centos 5 gives plenty of examples of settings for all different types of devices. We really need to specify OWNER, GROUP and MODE for devices that RAC will use in a rules file.
    Thanks,
    Satish

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

Maybe you are looking for

  • How do you change your security questions for your Apple ID ?

    How do you change your security questions under your Apple ID

  • How to render or output a multicamera project

    I am thankful for the previous help and now I have the multicamera project almost done.  I used multicamera window and went through 1 hour of film shot from two cameras.  It went into sequence 002 and then I put video transitions between each clip. I

  • How to intrigrate ALV report into Web Dynpro

    Hi Experts, I Done one ALV Report and the same thing should be developed on web dynpro also...so, i want to intigrate the alv in web dynpro is this possible..if so, pl. let me know..asap. Thanks & Rewards, Satish

  • I pod photo update help!!!

    i had update my i pod photo.. buy now have a message logo http://rz.hk/dz/attachments/forumid8/DSC00016ACffJ7DfOl9G.jpg http://rz.hk/dz/attachments/forumid8/DSC00017ce1LyLreNTv8.jpg i pod photo   Windows XP   no

  • Installing APS Elements 10

    When installing the message appeared insert disc #2 of 3  Inadvertently hit a key when opening dvd tray.  was not able to insert disc #2 or #3.  should I uninstall or what can I do to complete the installation