Date and version should be generating by

Hello All,
We are also using with IBM websphere portal in our environment.
But this is a Linux question than a product.
For our routine deployment we are doing export/import.
I want to run export by script for both source and target.
Regardless of how many time I run the same script I want export file will be generated by name,date and version #.
First time script will create source_fulltest20091215_1.xml,
if user runs scripts again it will create the name as source_fulltest20091215_2.xml.
Third time script will generates file name as source_fulltest20091215_3.xml
Please notice name of the file its increment by number.
Below is a general format of the script,
if I run exactly same script it will create the file called ‘source_fulltest20091215_1.xml”.
./xmlaccess.sh -in exportBase.xml -out source_fulltest20091215_1.xml -url http://hostname:port#/wps/config -user svc_wpsadmin -password 'helloworld'.
I want date and version should be generating by auto script.
Thanks

Review the output formatting of the date(1) command:
$ man dateand use it to compose part of the filename:
fn=fulltest$(date '+%Y%m%d%H%M')The version number is a bit tricky, there are so many choices about how to do it. One way, assuming you just want the filenames to be unique is to:
if [ -f ${fn} ]; then
   seqno=1
   while [ -f ${fn}_${seqno} ]; do
        seqno=$(expr ${seqno} + 1)
   done
   fn="${fn}_${seqno}"
fiThere are more succinct ways of expressing this, but this way will work everywhere.

Similar Messages

  • Discoverer release dates and versions

    Hi,
    Can someone give me the release dates and version numbers of the various Discoverer releases up to now ?
    I'm trying to get a feel for the maturity and get accurate dates, thanks !
    Cheers,
    Baber

    Discoverer is a very mature product in the BI standpoint. These are the dates I remember from memory. I'm sure the disco team or some of the other members have more accurate dates
    3.1 May 1998
    4.1 December 2000
    9.0.2 April 02
    10g aka 9.0.4 January 04
    10.1 (aka Drake) January 05
    10.1.2 September 05
    There were also many smaller patch releases along the way. Let me know if you need anymore assistance or help with your evaluation
    Matt Topper
    TUSC, The Oracle Experts.
    [email protected]

  • In recrutiment in letters default data and time should come

    Dear Group
    Here i am have a problem that my client whats interview date and time should be disployed in letters.
    But for this i want to enhance 2 fields in costome infotype but the abapr is saying that this cannot be done .because these r not appearing in pb50and pb60.so kindly tell me any way so how can i get the date and time displayed

    see in so10 we have maintained letters but in interview invitation letter interview date and time should come.so for this we r maintaing in custom infotye9xxx so it has to pick that time and date from this infotye and it should display in this letter .

  • Is it possible to monitor a particular Exchange 2010 mailbox via SCOM if 30 or more emails trigger in 30 minutes in the inbox and alert should be generated

    Is it possible to monitor a particular Exchange 2010 mailbox via SCOM if 30 or more emails trigger in 30 minutes in the inbox and alert should be generated for that.
    If this is not possible in SCOM. Is there another way we can do it via power shell or any thing.
    Gautam.75801

    Hi,
    We may need to create script based rule using PowerShell or VBScript.
    Please go through the below links for command get-mailboxstatistics:
    Exchange 2010 : http://community.spiceworks.com/topic/122241-scripting-to-count-all-of-the-messages-in-a-mailbox
    Regards, Yan Li

  • PO date and Omaterial should display in the ascending order

    Hi experts,
    When i excute the rep0rt the POdate and Material is not displaying in asending order, based on this order am caluculating some other key feild.
    Back ground  this was a Function Module datasource whichwas extraced into BI , Until PSA am getting the values correct. But from Cube the materilal and Podate are not in sequence. How to make these 2 in order. In reporting is there any setting, i tried to display in ascending order  in query properties this not makign any change.
              POdate            Material
    Ex: - 01-0102010   4010100010
            02-01-2010    40101000020
    Regards,
    singam.v

    Hi,
    Please check "Sorting" options in Query Designer.  They are defined for each characteristic placed at rows or columns.
    You can sort according to keys (InfoObject Primary Keys) or Name/Description (InfoObject Texts).  Perhaps the query is sorting but according to a criterion which is different from what it is expected.
    Another thing to take into account is the order in which columns are placed.  Sorting order is defined from left to right.
    For example, if the first column is 0CALDAY and the second is 0MATERIAL, the query first sorts by date and if there are records with the same date, it sorts according to material, and so forth.
    I hope this helps you.
    Regards,
    Maximiliano

  • Project version(current data and version data comparison not possible)

    HI,
    I am stuck up with project version we are using EHP7 and SAP HANA
    When i create the version through CN71 or CNS41 system displays message "version is saved"
    When i try to compare the same version with the current date in the same mentioned transaction codes system does not display the version data .
    secondly when i am trying to display only version system displays message version does not exists.but in tables data is saved
    In transaction code CN71 if i go to edit -->other selection versions-->enter user and press enter system displays all the saved versions for that project
    selecting the project version it is displayed only
    In the drop down list ,under VIEW--> choose project versions is also in display mode and is not editable .

    hi Sushrut,
    If the version only exists in table VSKOPF then it does not main the version is actually created. You need to check if the corresponding version data has been created in table like VSPROJ_CN, VSPRPS_CN and so on, these tables holds the real data of your versions, if there is no data in these tables, then you can't compare the data also.
    Regards,
    Rachel

  • XI Sender file adapter - How to process data and control files.

    Hello all,
       I have the following requirement to fulfill: I am using an FTP client (XI Sender file adapter) to retrieve data from an FTP site. To make sure I am not picking up a data file that is currently being written to, 2 files are actually present on the FTP site (for each data file):
    1. abc.ctrl (control file with no data in it. Indicates that the data file has been completely written).
    2. abc.dat (actual data file).
      I want the file/ftp connector in XI to retrieve the data file (abc.dat) only if the control file (abc.ctrl) is present. After the processing of the data file is finished, both files (.dat and .ctrl) should be deleted.
      Is there an elegant and robust way to accomplish this?
    Thanks for your help.

    Hi Yves,
    in my opinion there's no problem with files currently being written in combination with a polling file adapter because the final file name should be available only when the file is transferred completely. I'm using different file sender adapters very often and never had any problems. After picking up the files I move them to the corresponding archive folders mentioned in the adapters so that a second processing cannot occur.
    Regards
    Ralph

  • Automatically displaying date and time in a date/time field on form initialize

    Good day all;
    I am trying to have the current date and time automatically be generated in a “date/time” field when the form is opened.
    I went through the forum and found an entry from Srini “ xfa.host.messageBox("" + Date());” . Of course this brought up a system message box with the date and time.
    I then tried “DateTimeField1.rawValue = (“”+date())… This also gave me a system message box with the date and time…
    Please let me know where I am going wrong
    Chomp

    Found the answer... And yes... in was in the "help" section... What can I say I was making it a lot more crazy than I needed to.
    You can use a date/time field to automatically show the current date by using the Runtime Property option in the Value tab of the Object palette.
    When using a current date field, the date updates to reflect the system’s current date each time a user opens the form.
    1.
    In the Library palette, click the Standard category and drag a Date/Time Field object onto the form design.
    2.
    In the Object palette, click the Value tab and select Calculated - Read Only from the Type list.
    3.
    Select the Runtime Property option.
    4.
    View the form in the Preview PDF tab.

  • Approve data and lock data

    Hello all
    I have two units in a project that are taking part in the planning scenario.
    The first unit enters the data, and the second checks the data.
    I want that after thr first unit enters the data, and saves it, it cannot change it until the second unit approve the data.
    I dont want to use the STS application.
    Can anyone give me a tip how to do it?
    Best Yuval

    Hi,
    Depends on how you decide to store this status (which will  just be an indicator). Lets say it is a masterdata table where you keep an attribute called status. When the first unit presses submit, change this indicator to some predefined value, say '1'. The fox should run each time they try to save data and it should reach the proper status and throw an error if the status is '1'. The same record can be modified using a function by the second unit as required.

  • When I try to play a You Tube video in Safari it tells me my version is no longer supported and I should download a newer version of Safari. I have OSX10.8.5, and my Safari is 6.2.3, and apparently it's up to date. What's going on?

    When I try to play a You Tube video in Safari it tells me my version is no longer supported and I should download a newer version of Safari. I have OSX10.8.5, and my Safari is 6.2.3, and apparently it's up to date. What's going on? Should I just give up and use Chrome or Firefox, which work fine?
    Thanks,
    Richard

    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/6.2.3 Safari/537.85.12
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

  • As of version 31, why is there still no Thunderbird option to insert current date and time in message that you are writing?

    As of version 31, why is there still no Thunderbird option to QUICKLY insert current date and time in message that you are writing?
    Literally have seen this very-much-needed -- and used -- option "promised" for three years now, and even if there's only one or two formats that could be used, at least the option is there.
    It seems only way is to link a Macro and tool to Thunderbird and do it that way.
    Joe Rotello
    [email protected]
    Skype: joerotello

    Where was it promised? A quick search of Bugzilla didn't find a functionality request bug report for it.
    I assume you're aware that Mozilla stopped development about 2 years ago (just adds security/stability fixes and provides infrastructure) and all new features and bug fixes are now added by the community. They seem pretty tied up with bug fixes and reworking some hard to maintain components such as the MIME support.
    Have you tried the Timestamp add-on at https://addons.mozilla.org/en-us/thunderbird/addon/timestamp/ ? The version at AMO doesn't support versions later than 2.0 so you'd need to do something like install the disable add-on compatibility checks add-on at https://addons.mozilla.org/en-us/thunderbird/addon/checkcompatibility/?src=ss, and ignore the warning message about Timestamp not being compatible. However, the author has a version at http://extensions.sanjer.nl/?page=tb_ts that supposedly supports up to Thunderbird 11.9.x so it should be "compatible by default as it supports version 5 or later and is not a binary add-on like Lightning or Enigmail.
    "For Thunderbird use the context menu (right click popup) in the compose window, Ctrl+Shift+T or "Options | Insert timestamp" to inserts the date/time into a message"

  • Since uploading Firefox 4 I get error messages saying it can't update and I should be sure I am using the latest version. I am, so why will updates not load?

    The question is in the title. I have had no updates to Firefox 4, just error messages saying they can't be loaded and I should check that I am using the latest version. I have downloaded Firefox 4 again to be sure my copy is up to date but it makes no difference. I still get the error message.

    Remove the files in the updates and updates\0 folder.<br />
    You may need to delete active-update.xml and updates.xml as well if present.
    C:\Users\&lt;user&gt;\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    (%LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox)
    * http://kb.mozillazine.org/Software_Update (Software Update not working properly)

  • Data migration and version-up

    Dear all friends,
    i am new in SAP,
    i plan to join Data mirgration and version-upgrade domain.
    please help to show me : process step by step or your experience when upgrade system
    ex : process to upgrade from SAP R/3 to SAP ECC.
    what life-cycle, document, template should we use !?
    thanks !
    Edited by: Quoc Luc Nguyen on Apr 22, 2008 6:54 AM

    Hi,
    Please check with the below links. They provide the information you are looking at.
    Upgrade Information Center [original link is broken]
    http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    SAP defined a roadmap for upgrade.
    1) Project Preparation
    Analyze the actual situation
    Define the objectives
    Create the project plan
    Carry out organizational preparation for example identify the project team
    2)Upgrade Blueprint
    The system and components affected
    The mapped business processes
    The requirements regarding business data
    3)Upgrade Realization -- In this phase the solution described in the design phase is implemented in a test environment. This creates a pilot system landscape, in which the processes and all their interfaces can be mapped individually and tested on the functional basis.
    4)Final Preparation for Cutover -- Testing, Training, Minimizing upgrade risks, Detailed upgrade planning
    5)Production Cutover and Support
    The production solution upgrade
    Startup of the solutions in the new release
    Post processing activities
    Solving typical problems during the initial operation phase.
    SAP expects at least 2 to 3 months for Upgrade and that again depends on project scope and complexity and various other factors.
    STEPS IN TECHNICAL UPGRADE
    • Basis Team will do the prepare activities. (UNIX, BASIS, DBA).
    • Developer need to run the Transaction SPDD which provides the details of SAP Standard Dictionary objects that have been modified by the client. Users need to take a decision to keep the changes or revert back to the SAP Standard Structure. More often decision is to keep the change. This is mandatory activity in upgrade and avoids data loses in new system.
    • After completing SPDD transaction, we need to run SPAU Transaction to get the list of Standard SAP programs that have been modified. This activity can be done in phases even after the upgrade. Generally this will be done in same go so that your testing results are consistent and have more confident in upgrade.
    • Run SPUMG Transaction for Unicode Conversion in non-Unicode system. SPUM4 in 4.6c.
    • Then we need to move Z/Y Objects. Need to do Extended programming check, SQL trace, Unit testing, Integration testing, Final testing, Regression Testing, Acceptance Testing etc.,
    The main Category of Objects that needs to be Upgraded is –
    • Includes
    • Function Groups / Function Modules
    • Programs / Reports
    • OSS Notes
    • SAP Repository Objects
    • SAP Data Dictionary Objects
    • Domains, Data Elements
    • Tables, Structures and Views
    • Module Pools, Sub Routine pools
    • BDC Programs
    • Print Programs
    • SAP Scripts, Screens
    • User Exits
    Also refer to the links -
    http://service.sap.com
    http://solutionbrowser.erp.sap.fmpmedia.com/
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://www.id.unizh.ch/dl/sw/sap/upgrade/Master_Guide_Enh_Package_2005_1.pdf
    Regards,
    Shiva.

  • I am using Iphone 3G and running with ios version 4.2.1 .I am looking for to run whatsup apps.Can you guide me which IOS version should i download wherein,it will support whatsup apps

    I am using Iphone 3G and running with ios version 4.2.1 .I am looking for to run whatsup apps.Can you guide me which IOS version should i download wherein,it will support whatsup apps

    with an iphone 3G the most up to date ios is 4.2.1 so you have a problem because whatsapp requires a higher version.  If you saved an earlier version of whatsapp you could install that otherwise you cannot use the app.  You will need to get a more up to date phone

  • HT4890 i maid a version update , but when turn on all the data and contcats are old where can be the last dated update

    Dear all
    i have maid a version update to my iphone
    the system has asm me before to make a buck up i did confirm to be on i cloud
    after the new instlation compleitemd on th eiphoen theor was not contcats
    only nimbers wit h no names
    i have tryeid few way and at last i have recived soem list of contacts old date make be a year old
    then i wend to icloud and alos their the list is old
    as wellon th emac it is old
    where is the data and hwo can i get back to what i had on the day of bucking up
    thax
    nati

    There are multiple reasons that lead to issue. You should read the troubleshooting guide to get the right solution to solve the issue: iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support

Maybe you are looking for

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help. I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--it

  • Flex 3 Heap Size

    I've changed every config and ini file suggested to increase Flex's heap size. I've enabled the heap monitor on the console and it never increases over 64M. On the simplest code examples I exceed the heap limits and need to restart. Anyone have any o

  • Example Oracle Spatial Queries for NAVTEQ Data

    Hi, I recently installed NAVTEQ RDF data into an Oracle database. I am new to Oracle Spatial and am looking for some example queries using the NAVTEQ data in the Oracle database. For example, suppose I have a point (latitude,longitude). What are the

  • Problems installing ISW

    Hello, I'm having an issue where the the ISW installation is failing because it's says it needs patch 117722-10. When I try to patchadd that, it fails because one or more of the packages aren't installed. I did a pkginfo on all the packages that are

  • I Cannot open "Ace Money" application

    Ihave been using the trial version of ace money and have subsequently purshased a license. tried to open the program to insert license and prgram would not open. I trashed the application and downloaded it again but still no joy. What can I do?