Scripts for CS6 Scripting Guide

The link in the PDF document "Adobe InDesign CS6 Scripting Guide:Javascript" is broken and I can't find the file with the example javascripts. 
Can you help?
/f

http://www.adobe.com/devnet/indesign/documentation.html

Similar Messages

  • Including a test script for other scripts in OpenScript

    Hi all,
    I am a newbie in OpenScript. I had created a "myfunctions" test script which have all the common functions for my scripts. I found out that, for the script to be called, we need to add it to the script assets. This will not be feasible in my case because there are many scripts that calls these functions and I cant add them to all. Is there any other method to include it (eg. Making it in a jar file and using import? or something of that sort?). Couldnot get any help from the net or the documentation. Please let me know a way to handle this.
    Thanks.

    Hi,
       Looks like the relative path information is not being properly resolved during Replay. Is the application URL being properly loaded in the Replay view? By "properly" I mean does it have the entire URL of the application with the protocol, server & port number?
    Regards,
    Satyajit

  • Genrating script for following scripts.

    HI,
    i have to genrate script for getting this output from 100 servers.
    but i tried on 2 servers but out put was not prpaerly allinged i spool the output
    can any one suggest me to take this output on CSV or other proper format.
    1.1 select * from v$version
    1.2 select * from v_$database
    1.3 select * from sys.V_$PARAMETER
    2.1 select * from sys.dba_users order by username
    2.2 select * from sys.dba_profiles order by profile
    3.1 select * from sys.dba_role_privs order by grantee
    3.2 select table_name, privilege from dba_tab_privs where grantee = 'first_role_name' minus select table_name,privilege from dba_tab_privs where grantee = 'second_role_name'
    3.3 select * from sys.dba_sys_privs order by grantee
    3.4 select grantee from sys.dba_sys_privs where grantee IN (select username from sys.dba_users)
    3.5 select grantee from sys.dba_sys_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
    3.6 select grantee, table_name, privilege, grantable from sys.dba_tab_privs order by grantee
    3.7 select grantee from sys.dba_tab_privs where grantee IN (select username from sys.dba_users)
    3.8 select grantee from sys.dba_tab_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
    3.9 select table_name, column_name, privilege from sys.dba_col_privs order by grantee
    3.10 select grantee from sys.dba_col_privs where grantee IN (select username from sys.dba_users)
    3.11 select grantee from sys.dba_col_privs where grantee NOT IN (select granted_role from sys.dba_role_privs) AND grantee NOT IN (select username from sys.dba_users)
    4.1 select * from sys.V_$DATAFILE
    4.2 select * from sys.V_$CONTROLFILE
    5.1 select * from sys.product_user_profile order by username
    6.1 select * from sys.dba_db_links This command lists database links
    7.2 select * from sys.dba_stmt_audit_opts
    7.3 select * from sys.dba_priv_audit_opts
    thanks!!!

    Try with the SQL formating.... col format, linesize,wrap on off... etc...
    See more here :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm

  • Custom user/root scripts for hibernate-scripts

    i am using hibernate-scripts and installed it by using arch guide.
    i am trying execute some scripts on resume and suspend. but folloing method doesnot seems to work,
    In common.conf i put
    OnSuspend 00 bash /etc/hibernate/suspend.sh
    OnResume 00 bash /etc/hibernate/resume.sh
    both *.sh are chmod'd as +x. both file have touch /tmp/$1 in the end.
    there would no /tmp/*.sh.
    so i am stuck here.
    thanks

    i have tried putting
    OnSuspend 20 touch /tmp/suspend
    OnResume 20 touch /tmp/resume
    even that does not work.
    other configs in /etc/hibernate/
    hibernate.conf
    TryMethod ususpend-disk.conf
    ususpend-disk.conf
    USuspendMethod disk
    Include common.conf
    common.conf
    # Configuration options common for suspending to disk or RAM.
    # Options are not case sensitive.
    # See hibernate.conf(5) for help on the configuration items.
    ### Some global settings
    Verbosity 0
    LogFile /var/log/hibernate.log
    LogVerbosity 1
    LogTimestamp yes
    # AlwaysForce yes
    # AlwaysKill yes
    # HibernateVT 15
    Distribution arch
    # XDisplay :0
    ### Scriptlets
    ### Scriptlets provide support for doing all sorts of things before and after
    ### suspending. The defaults settings here should work for most people, but
    ### you may wish to edit these to taste. Consult "hibernate -h" for help on
    ### the configuration settings.
    ### bootsplash
    ## If you use bootsplash, also enabling SwitchToTextMode is recommended if
    ## you use X, otherwise you may end up with a garbled X display.
    # Bootsplash on
    # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
    ### clock
    #SaveClock restore-only
    #DirectIsa
    ### devices
    # IncompatibleDevices /dev/dsp /dev/video*
    ### diskcache
    DisableWriteCacheOn /dev/sda
    ### fbsplash (enable SwitchToTextMode if you use this)
    # FBSplash on
    # FBSplashTheme tuxonice
    ### filesystems
    # Unmount /nfsshare /windows /mnt/sambaserver
    #Unmount /home/u1 /mnt/wd
    # UnmountFSTypes smbfs nfs
    # UnmountGraceTime 1
    # Mount /windows
    ### grub
    # ChangeGrubMenu yes
    # GrubMenuFile /boot/grub/menu.lst
    # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
    # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
    # see http://bugs.debian.org/317479
    # RemountXFSBoot yes
    ### hardware_tweaks
    # IbmAcpi yes
    # RadeonTool yes
    # Runi915resolution yes
    FullSpeedCPU yes
    ### lilo
    # EnsureLILOResumes yes
    ### lock (generally you only want one of the following options)
    ## For console you need vlock available.
    ## For x you need xscreensaver-command-command available.
    ## For gnome you need gnome-screensaver-command available.
    ## For kde you need dcop, kscreensaver available.
    ## For XAuto you need xautolock available.
    ## For Xtr you need xtrlock available.
    ## For Freedesktop (for example KDE4) you need dbus-send available
    # LockConsoleAs root
    LockXScreenSaver yes
    # LockGnomeScreenSaver yes
    # LockFreedesktop
    # LockKDE yes
    # LockXLock yes
    # LockXAutoLock yes
    # LockXtrLock yes
    ### misclaunch
    OnSuspend 20 touch /tmp/suspend
    OnResume 20 touch /tmp/resume
    ### modules
    # UnloadModules snd_via82cxxx usb-ohci
    # UnloadAllModules yes
    UnloadBlacklistedModules yes
    LoadModules auto
    # LoadModulesFromFile /etc/modules
    ### modules-gentoo
    # GentooModulesAutoload yes
    ### network
    # DownInterfaces eth0
    # UpInterfaces auto
    ### networkmanager
    # EnableNMReconnect yes
    ### pause_audio
    # MuteAudio yes
    # PauseAudio yes
    ### pcmcia
    # EjectCards yes
    ### programs
    # IncompatiblePrograms xmms
    ### services
    # RestartServices laptop_mode anacron
    # StopServices alsasound
    # StartServices aumix
    ### vbetool
    # EnableVbetool yes
    # RestoreVbeStateFrom /var/lib/vbetool/vbestate
    # VbetoolPost yes
    # RestoreVCSAData yes
    ### xhacks
    SwitchToTextMode yes
    # UseDummyXServer yes
    # DummyXServerConfig xorg-dummy.conf
    ### xstatus
    ## This can be set to gnome, kde or x:
    ## For gnome you need zenity available.
    ## For kde you need dcop, kstart, kdialog available.
    ## For x you need to have xosd OR xmessage available.
    # XStatus gnome
    # XmessageDisable yes
    # XSuspendText Preparing to suspend...
    # XResumeText Resuming from suspend...
    ## When using XStatus x, and you have xosd installed:
    # XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
    ### xbacklight
    # BackLight yes
    ### gaim
    ## You need to have dbus, gaim_remote available.
    # LogoutGaim yes
    # GaimRestoreStatus yes
    # GaimLogoutMessage Hibernating
    # GaimLoginMessage Back from hibernation
    ### pidgin
    # LogoutPidgin yes
    # PidginRestoreStatus yes
    # PidginLogoutMessage Hibernating - bye!
    # PidginLoginMessage I'm back!
    ### SSH and PGP keys
    # AgentsClearGPG yes
    # AgentsClearSSH yes
    ### Virtualbox
    # SuspendVirtualbox yes
    Last edited by raining (2012-11-04 12:03:38)

  • Is there an updatedcrossrefs script for InDesign CS6

    Running Mac Pro/2.66 GHz—Quad-Core Intel Xeon/Snow Leopard/
    OS/Mac OS X Version 10.6.2/2.66 GHz
    I converted a CS3 InDesign that uses the script "updatedcrossrefs.js", to CS6 InDesign. This file uses hyperlinks on the TOC and Index.
    I tried using the same script for CS3 InDesign in CS6 InDesign but it does not work.
    This is the error message "Could not catch page. Check destination names and existence."
    Is there an updated script for CS6?

    Sorry did not know I was using bold. My co-worker found this script however, she does not work here anymore. But here is the script. I know nothing about scripts except how to use them. Sorry.
    // Updatecrossrefs.js
    // Updates cross references made with hyperlinks
    // the hyperlink destination is where the reference refers to
    // the hyperlink sourcetext is the text that will be updated (like see xx)
    // If a book is open, the book will be handled,
    // if no book is open, the active document will be handled.
    // Made by Teus de Jong, last version April 10, 2006
    // Revisions by Dave Saunders January 22, 2006 and March 20, 2006
    // Thanks Dave!
    // Added unique naming mechanism for sources -- October, 2008
    if (app.books.length == 0){
              if (app.documents.length == 0){
                        errorExit('No documents are open');
              } else {
                        nrofdocs = 1;
                        doc = app.activeDocument;
    } else {
              nrofdocs = app.books[0].bookContents.length;
              for (i = nrofdocs - 1; i > -1; i--) {
                        if (app.books[0].bookContents[i].status != BookContentStatus.documentIsOpen)
                                  app.open(File(app.books[0].bookContents[i].fullName));
              doc = app.open(app.books[0].bookContents[0].fullName);
    for (d = 1; d <= nrofdocs; d++){
              for (i = 0; i < doc.hyperlinks.length; i++){
                        hyper = doc.hyperlinks[i];
                          // leave ID's own internal markers alone
                        if (hyper.name.substring(0, 1) == '.'){continue}
                          // leave hyperlinks to URLs alone
                          try {
                                  if (hyper.destination.constructor.name == 'HyperlinkURLDestination'){continue}
                        } catch (e) {
                                  hyper.showSource();
                                  errorExit('Selected hyperlink has undefined destination');
                        s = hyper.source.name;
                        // added October, 2008
                        // sometimes ID's unique name mechanism for sources fails; make sure the source has
                        // the same name as the hyperlink + '_src'
                        if (s != hyper.name + '_src')
                                  hyper.source.name = hyper.name + '_src';
                        if (hyper.destination.constructor.name == 'HyperlinkTextDestination'){
                                  s = getParentPageName(hyper.destination.destinationText);
                         } else {
                                   // try/catch added to allow for hyperlinks that have lost their destination -- Dave
                                   try {
                                              s = hyper.destination.destinationPage.name;
                                    } catch (e) { continue }
                        if (s != ''){
                                  // Check to see if update needed; saves a lot of time when processing large books -- Dave
                                  if (hyper.source.sourceText.contents != s) {
                                            hyper.source.sourceText.contents = s;
              if (d >= nrofdocs){
                        break;
              doc = app.open(app.books[0].bookContents[d].fullName);
    function getParentPageName(txt){
              try { 
                        var myFrame = getParentTextFrame(txt);
                        var pag = myFrame.parent;
                        while (pag.constructor.name != 'Page'){
                                  // in case the reference is in an inline, the parent of the frame is a character
                                  if (pag.constructor.name == 'Character'){
                                            pag = getParentTextFrame(pag);
                                  // in case the chain goes sour, back out
                                  if (pag.constructor.name == 'Application'){
                                            throw 'Error';
                                  pag = pag.parent;
                        return(pag.name);
              catch (e) {
                        alert('Could not catch page.\nCheck destination names and existence.');
                        return('');
    function getParentTextFrame(x){
              if(app.version == 3){
                        return(x.parentTextFrame);
              else {
                        return(x.parentTextFrames[0]);
    function errorExit(s){
              alert(s);
              exit();

  • Upgraded to VS 2013 - cannot edit script in SSIS script component

    I'm running SQL Server 2014 and just recently upgraded to Visual Studio 2013 from 2012. I was attempting to develop an SSIS solution today - the first time since the upgrade - and was blocked because I wasn't able to edit the script for a script component
    in an SSIS package.
    I can add the object to a data flow but clicking on the "Edit Script..." button yields no response whatsoever. No error, no scripting environment. 
    I'm running VS2013 Ultimate with SSDT 2013, and SS 2014 Enterprise. 
    My hunch is that there are components missing somewhere but I don't know enough about this platform to piece together how things are related. I have nearly every option installed for VS2013 except for Windows Phone and app store development.
    I didn't have an issue previously and I'm unsure how to debug this - especially since I'm not a real SDE. 
    Thanks in advance for your help

    Hi Torben E,
    Maybe that you were unaware that you post this issue in Visual Studio Setup and Installation forum. This forum is to discuss and ask questions about the install and setup of Visual Studio. Obviously, this case is out of the scope of this forum.
    I'm unsure which forum is better for this case. Is Visual Studio General forum? Or SQL Server Integration Services forum? But I'd like to find a suitable forum along with you.
    >>I was attempting to develop an SSIS solution today - the first time since the upgrade - and was blocked because I wasn't able to edit the script for a script component in an SSIS package.  
    I see that you upgrade to Visual Studio 2013 from 2012. And you didn't have an issue previously. Do you mean that you can create SSIS project and edit the script for a script component before you upgrade VS?
    >>ERROR: Cannot resolve reference coloader80.dll,processorArchitecture="X86",type="win32",version="1.0.0.0".
    From the error message, it seems that the IDE can't find the coloader80.dll. Can you find this dll in your PC? Does it exist in the path ""C:\Program
    Files (x86)\Microsoft
    Visual Studio 11.0\Common7\IDE\"?
    If you can find it, please try to register the oleaut32.dll as the thread below mentioned to see if this method can solve this issue.
    https://social.msdn.microsoft.com/Forums/en-US/68d89658-b35f-4828-a9b1-31cf5cfc7717/coloader80dll-and-critical-debug-error?forum=Vsexpressvb
    This error is caused by the registration for oleaut32.dll was corrupted, there maybe other dll that also named oleaut32.dll, so visual studio could not
    find the right oleaut32.dll.
    So please download the OleAutClean.msi in this link and run it, to clean all the registration of oleaut32.dll.
    http://download.microsoft.com/download/a/9/3/a93f06e7-5828-460c-a78b-ab89c77b6957/OleAutClean.msi
    Then register the oleaut32.dll again.
    1.     
    Right click the Commandline to run the commandline as administrator.
    2.     
    In the commandline, run the following command if you are using Win7 or vista.
    regsvr32 "%CommonProgramFiles%\microsoft shared\VS7DEBUG\coloader80.dll" . Then you will see a dialog that shows the registration
    successes.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Script for InDesign CS6 - create multiple, prenamed layers

    I created a script for Illustrator CS6, in ExtendScript Toolkit, that will create multiple, prenamed layers...see below...
    //Apply to myDoc the active document
    var layerName = LayerOrderType;
    var myDoc = app.activeDocument;
    //define first character and how many layers do you need
    var layerName
    var numberOfLayers=0;
    //Create the layers
    for(var i=0; i<=numberOfLayers; i++)
    { var layerName = ":: GRADIENT";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: STRIPES";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LEGAL";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: BLK BAR";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: FLAME";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOGO/TYPE";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: TRIM,ETC";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOEC INFO";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    // Moves the bottom layer to become the topmost layer
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
    else {
    alert("The active document only has only 1 layer")
    I tried to use this exact code to replicate the same scenario in InDesign but it doesn't work.
    Can anybody help me out!?
    Thanks in advance

    Marijan Tompa's scripts are very nice and useful, however, for this simple task you can try create your own wiht this code:
    app.activeDocument.layers.add ({name: "GRADIENT", layerColor: UIColors.red});
    app.activeDocument.layers.add ({name: "STRIPES", layerColor: UIColors.lightBlue});
    app.activeDocument.layers.add ({name: "LEGAL", layerColor: UIColors.gray});
    //merge existing document layer to bottom layer (in this case original layer will be merged to 'GRADIENT')
    var myDocument = app.documents.item(0);
    var myLayerA = myDocument.layers.item(2);
              var myLayerB = myDocument.layers.item(3);
              myLayerA.merge(myLayerB);
    alert("Layers created!");
    assume, your document has one layer.
    Script creates three new layers, they appear in Scripts palette in this order:
    LEGAL
    STRIPES
    GRADIENT
    and merges 'old' layer to bottom layer of newly created set (GRADIENT).
    sure, you can add as much layers as you need, just don't forget modify LayerA and LayerB numbers accordingly.
    Or disable second part of the script at all, if you don't want anything to be merged.

  • Scripting  for Form Guides in ES2?

    Hi,
    I started developing  guides in ES2 and able to genarate the  some  examples successfully.
    I am able to pre populate  the data  into Forms.
    But I  paused writing the script for form guides. Please  let me know good material for scripting  the form guides in ES2.
    And   more thing is how to draw static Table (normal table) on the form guides ?
    Thanks
    Praveen

    I'm not aware of any tutorial. The documentation team has not created one, but there is an overview video here:
    http://my.adobe.acrobat.com/lces2fsp_guide_based_applications/
    The help on how to create guides is here:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/003610.html
    How to use a guide in a process is documented in the Creating Human-Centric Process section of the Workbench ES2 help:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000217.html
    Scott

  • Changes to using graphic settings in Bridge CS6 scripts

    The "CS6 Tools Guide" document shows no changes in how graphical settings should be used for Foreground Colour, Background Colour, Fonts and Font Size, as well as the use of Images in panels.  All these work as before with scripts used in Photoshop CS6.  But with Bridge CS6 the use of an image will crash Bridge, whereas the settings for Colours and Fonts are just ignored.  Does Bridge CS6 now have customised settings for graphical changes to panels?  Or is this a bug?

    I'd much rather have 32 bits that do what they ought to… sounds like CS6 has 48 that don't…

  • How to parse a text file and produce a dynamic shell script for linking?

    I have some mapping files, one example is like this one;
    $ cat CON_xfrm_contract_to_20080302.map
    (object mfile_c_type
    (path "file:OBSOLETE")
    (fs "file://amanos/s01/abinitio/data/prod/mfs/mfs_16way")
    (local_paths 16
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"))In this file's content I have some exracted text files with same names under different folders;
    $ ls -lt /s01/abinitio/data/prod/mfs/parts/mfs_16way_*/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat   [
    -rw-rw-rw-   1 ab_live  abinitio 438652105 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438490410 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438219252 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438521432 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438488130 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438249547 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438312177 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 439074566 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438722261 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438742477 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438517268 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438645835 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438334994 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438470743 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438095853 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438434204 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.datI need a shell script which will produce a shell script from the content of the mapping file so that I can be able to symbolicly link these files with different names and under the same folder, like;
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_016.CON_xfrm_contract_to_20080302.datI am a newbie for shell scripting, I tried several awk and sed operations but couldn't get close to this output :(
    If you guide me I will be so glad, thank you.
    ps: amanos is the name of this server.

    this is thepoint that I am stuck, I can not add the destination sym.link name to the end of each line;
    $ grep "  \"file://amanos" CON_xfrm_contract_to_20080302.map | cut -c17- | sed  's/"//;s/)//g' | sed 's/\/s01/ln -s \/s01/g'
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    $ /)//g' | sed 's/\/s01/ln -s \/s01/g' | awk -F\/ '{print $8"."$14}'                                                       <
    mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    mfs_16way_002.CON_xfrm_contract_to_20080302.dat
    mfs_16way_003.CON_xfrm_contract_to_20080302.dat
    mfs_16way_004.CON_xfrm_contract_to_20080302.dat
    mfs_16way_005.CON_xfrm_contract_to_20080302.dat
    mfs_16way_006.CON_xfrm_contract_to_20080302.dat
    mfs_16way_007.CON_xfrm_contract_to_20080302.dat
    mfs_16way_008.CON_xfrm_contract_to_20080302.dat
    mfs_16way_009.CON_xfrm_contract_to_20080302.dat
    mfs_16way_010.CON_xfrm_contract_to_20080302.dat
    mfs_16way_011.CON_xfrm_contract_to_20080302.dat
    mfs_16way_012.CON_xfrm_contract_to_20080302.dat
    mfs_16way_013.CON_xfrm_contract_to_20080302.dat
    mfs_16way_014.CON_xfrm_contract_to_20080302.dat
    mfs_16way_015.CON_xfrm_contract_to_20080302.dat
    mfs_16way_016.CON_xfrm_contract_to_20080302.datMessage was edited by:
    antu
    Message was edited by:
    antu

  • An error occurred while applying SQL script for the feature BackendStore.

    Hello,
    I am using my AD in Windows Azure VMs. I created new VM of A3 (4 cores, 7 GB Memory) Windows Server 2012 R2, Port 1433 MSSQL added, made it a member of Domain and planned to install first Lync Server 2013 on it.
    In "Setup or Remove Lync Server Components" of "Install or Update Lync Server System", got an Red Coloured text "An error
    occurred while applying SQL script for the feature BackendStore."
    I have not enabled monitoring and archiving server in topology builder. I added "Network Service" and assign "Full Control" in Security Permissions of "C:\CsData" and "C:\LyncShare".
    I executed the SQL Setup Wizard and upgraded any instance to 2012.
    Please guide.
    Thanks, Divyaprakash Koli

    Please check you have enough disk space for the disk where the folders are.
    Check view log for detailed log information.
    The following link is a similar thread for you to refer:
    http://social.technet.microsoft.com/Forums/lync/en-US/a3cb9ab0-7451-4df5-af96-3d2784d1b075/an-error-occurred-while-applying-sql-script-for-the-feature-backendstore-for-details-see-the-log?forum=lyncdeploy
    Lisa Zheng
    TechNet Community Support

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • Shell script for DB backup

    HI,
    i have written some java code Database backup but there are some problems with that so now i need to write shell script for db backup.
    what i was doing in java code i was running command like that
    /usr/local/bin/tar cvzf /export/home/monitor/FILE_20091005.tar.gz FILES/*20091005.*which compress the all *20091005* files (myisam table files)
    but after compression file doesn't extract
    so i have to write shell script for that ..... can any body guide me how can i write that kind of script and put it in cron job.
    thanks

    soundar wrote:
    Hi all,
    I have migrated database from 8i to 10gr2.For Backup in 8i, we used a RMAN shell script (scheduled uding cron tab) to backup the database to Tape.(VERITAS BACKUP).
    I am new to 10G.I checked out the options to backup the database using Oracle Enterprise manager DB console.
    http://www.oracle.com/technology/obe/10gr2_db_single/ha/rman/rman_otn.htm#t1d
    I am planning to take a test backup using the steps mentioned inthe above url.Could any one suggest whcih is the best option for database backup,eiether to use Oracle Enterprise manager DB console or thru RMAN shell script for backup..?
    Edited by: soundar on Mar 9, 2010 10:53 PMDear soudar
    I woudn't suggest you to work with EM if you want to be a professional DBA. Start learning RMAN and use CLI instead of GUI
    Those who live by the GUI, die by the GUI

  • Shell script for DB

    Hi,
    I have written shell script for below scenarios, can you please guide me to write this as correct way, requirment is,
    1. i need to connect the database which is on unix server , but before connecting the DB some of the files needs to be removed from \tmp directory.
    2. once removed the script need to connect the database and call the sql file which is in \tmp directory.
    3. the output files will be stored in \tmp directory start with DB name.
    4. finally csv files needs to be transferred to local windows with help of FTP. please find below the script
    #!/bin/sh
    rm -f /tmp/dbmon/DB1*
    CONNSTRING=username/PASSWORD@service
    sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
    EXIT;
    EOF
    HOST='xxxxx'
    USER='xxxxx'
    PASSWD='xxxxxx'
    FILE='E:\STATS\DB1.*'
    cd /tmp/dbmon
    ftp -n -v $HOST << EOT
    user $USER $PASSWD
    prompt
    mput $FILE
    bye
    EOT
    EXIT;
    EOF
    Thanks
    Edited by: ASP on Nov 18, 2011 4:45 PM

    Hi ASP
    It's always a good idea to write entries to timestamped log file without which you will never know where the script went wrong or failed.
    This is not tested but just a small example
    #!/bin/sh
    export LOG_DIR=/tmp/log
    export LOGFILE=$LOG_DIR/`basename $0`_${TIMESTAMP}.log
    if [ ! -d $LOG_DIR ]
    then
         mkdir $LOG_DIR
    fi
    echo "Removing the temporary files from /tmp/dbmon at `date +%Y%m%d_%H:%M:%S`" | tee -a $LOG_FILE
    rm -f /tmp/dbmon/DB1*
    CONNSTRING=username/PASSWORD@service
    echo "Run SQLPlus file" | tee -a $LOG_FILE
    sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
    EXIT;
    EOF
    echo "Now FTP the files to windows box " | tee -a $LOG_FILE
    HOST='xxxxx'
    USER='xxxxx'
    PASSWD='xxxxxx'
    cd /tmp/dbmon
    ftp -vn $HOST <<EOF
    quote USER $USER
    quote PASS $PASSWD
    ascii
    cd E:\STATS
    mput DB1.*
    bye
    EOF

  • Script for moving & deleting files

    Hi
    I'm quite new to scripts & looking for a script to move selected files with time-stamp & also a script to delete selected file/s in a directory. Below is an example of my requirement
    Move
    Ex:  c:\work\source\test.txt to c:\work\target\test.txt_04202015022100
    Delete
    Ex: c:\work\target\test-1.txt
    Could someone help me please.
    Thank very much
    Neil

    This forum is for scripting questions rather than script requests.
    Please start by reading the following:
    Posting guidelines
    Handy tips for posting to this forum
    How to ask questions in a technical forum
    Rubber duck problem solving
    How to write a bad forum post
    Help Vampires: A Spotter's Guide
    -- Bill Stewart [Bill_Stewart]

Maybe you are looking for

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file, In the cffunction there are much cfargument, I want set a value to one of them, such as the cfc: <cffunction access="remote" name="myShow" output="fals

  • Procedure to how to create a pop up in webdynpro

    hi all,   will anybody guide me the procedure to how to create a pop up in webdynpro application..plz as am new to it and i had requirement of creating pop up window in starting the application. thanks in advance.

  • Fraudulent Skype Charge to Credit Card

    At least once a week, I review my credit card charges posted to my account.  Today, I noticed a charge for $25 posted by Skype Communications initiated on Jan 7, 2015.  I do have a Skype account; however, there is no billing information on file nor h

  • Issue out despite Expiry Date is over

    Dear all, We have maintained the minimum remaining shelf life as 100 days for the materials . It prompt us to key in the Shelf Life Exp. Date during MIGO but during Good Issue, even though the expiry date is over, the system still allow us to issue o

  • Recommendations for best wireless multifunction printer for Macs $100?

    Anyone with recommendations for best wireless MFP for Macs <$100.  Would like to be able to print photos too.  Need EASY set up.  Prefer two paper cartridges.  Would like to be able to print from iPad, iPhone, Laptop and Mac.  Also need to fax.   Oh.