Get temp folder for logging

Hi,
I have used System.getProperty("java.io.tmpdir") to get the temp folder. Unfortunatelly on the windows platform it returns
C:\DOCUME~1\MyUseName\LOCALS~1\Temp\while on linux it returns
/tmpso basically the slash "/" is missing on the linux.
It seems to be pretty incomatible, as to build the full path I need to detect OS version to know if I need to append slash or not. Moreover on linux I would suppose to log to the _/var/log_ directory or similar.
I there any better approach for my issue?
BR
STeN
Edited by: stenlik on Apr 30, 2008 4:38 PM

Just always add the slash. The filesystem should be able to handle a pair of slashes just fine.
And you shouldn't be logging to temp directories anyway. The whole point of temp directories is that they're temporary. The whole point of log files is that they're permanent.
I have no idea whether there's some system property that's supposed to be a canonical place to put log files. I doubt it, because this is the kind of thing that's typically going to be configured on a per-instance basis anyway.

Similar Messages

  • Why Live Essentials 2012 keeps creating temp folder and Logs.cab?

    Say every time I use Windows Photo Gallery 2012 (part of Live Essential 2012, it was called Live Photo Gallery before), it will create a temp sub-folder under system temp folder, something like
    C:\Users\sh2sg\AppData\Local\Temp\09170103-00000e90-wusjy4myys\
    C:\Users\sh2sg\AppData\Local\Temp\09170103-00000e90-abcdefgh123\
    Every sub-folder contains a file called Logs.cab, when I quit Photo Gallery, Log.cab will be auto-deleted but not the folder, in the end there are hundreds of empty sub-folders left behind as I am a heavy Photo Gallery user. 
    I extracted one Log.cab, there are 11 log files something like:
    2012-09-18_21-55_e08-mo5k9081.log
    2012-09-19_21-24_e00-td1czj44.log
    2012-09-26_22-52_aa0-hzfc3srl.log
    contents all look same, here is one of them:
    Logger :00000ED4 (09/26/2012 22:52:34.543) Logger Initialized, LogID=[13425D75-2695-4E9B-94B4-D7A0347A62F7]
    LOG :00000ED4 (09/26/2012 22:52:34.543) Image: C:\Program Files (x86)\Windows Live\Installer\wlshim.dll
    LOG :00000ED4 (09/26/2012 22:52:34.543) X-AppName: WLUpdate
    LOG :00000ED4 (09/26/2012 22:52:34.543) X-AppVersion: 16.4.3503.0728
    LOG :00000ED4 (09/26/2012 22:52:34.543) Version: 16.4.3503.0728
    LOG :00000ED4 (09/26/2012 22:52:34.543) Flavor: SHIP
    LOG :00000ED4 (09/26/2012 22:52:34.543) Date: Jul 28 2012 (02:20:13)
    LOG :00000ED4 (09/26/2012 22:52:34.543) CommandLine: "C:\Program Files (x86)\Windows Live\Photo Gallery\WLXPhotoGallery.exe"
    LOG :00000ED4 (09/26/2012 22:52:34.543) Windows: 6.1 (7601) [300]
    LOG :00000ED4 (09/26/2012 22:52:34.543) Windows ServicePack: Service Pack 1
    LOG :00000ED4 (09/26/2012 22:52:34.543) Processor: 4 processor(s), architecture=amd64
    LOG :00000ED4 (09/26/2012 22:52:34.543) Memory: 8280236 KB, 6267408 KB available
    LOG :00000ED4 (09/26/2012 22:52:34.543) Locale: System=2052, UI=1033
    LOG :00000ED4 (09/26/2012 22:52:34.543) Locale: zh-CN
    LOG :00000ED4 (09/26/2012 22:52:34.543) X-UMID: 4AB0A537-E549-47C3-9EEA-8A27AC5DC835
    LOG :00000ED4 (09/26/2012 22:52:34.543) X-UUID: 30300A6A-51B9-4E67-9694-6A35A8A8C5E3
    Logger :00000ED4 (09/26/2012 22:52:34.543) OS String: 6.1.7601sp1.0x64-Wrk-1(2052;1033;zh-CN)Win7
    LOG :00000ED4 (09/26/2012 22:52:34.559) Default Browser: Maxthon.exe
    LOG :00000ED4 (09/26/2012 22:52:34.559) Uptime (milliseconds): 385751129
    ExeUtil :00000ED4 (09/26/2012 22:52:34.886) TrustLevel: REQUIRE: REAL
    CWLSetupClient :00000ED4 (09/26/2012 22:52:46.887) Entering GetLanguage()
    !WARNING! :00000ED4 (09/26/2012 22:52:46) SOURCE=SQM, CODE=0x80070108 Failed to upload SQM session data.
    !WARNING! :00000ED4 (09/26/2012 22:52:46) SOURCE=SQM, CODE=0x80070108 Failed to upload SQM session data.
    CatalogDownload:00000ED4 (09/26/2012 22:52:46.898) Init()
    CatalogDownload:00000ED4 (09/26/2012 22:52:46.898) Using language: 'en'
    UnpackManager :00000ED4 (09/26/2012 22:52:46.903) WLUnpacker not found in resources
    SecureCache :00000ED4 (09/26/2012 22:52:46.904) getting local Administrators Group's SID
    SecureCache :00000ED4 (09/26/2012 22:52:46.905) setting directory ACLs [C:\Program Files (x86)\Common Files\Windows Live\.cache]
    SecureCache :00000ED4 (09/26/2012 22:52:46.926) Cache version matches expected: 1
    Cert :00000ED4 (09/26/2012 22:52:46.926) Verifying signature of file=[C:\Program Files (x86)\Common Files\Windows Live\.cache\wlc283B.tmp]...
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.014) Cached catalog version: '16.4.3503.0728', short catalog raw version: 'ship.client.main.w5m4--RR1BLDA063-2012-07-28T11:02:24.2766213Z-16.4.3503.0728'
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.014) Loading and parsing new short catalog
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.015) No applicable update node found for current machine/client version
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving GetAppropriateUpdateNodef()
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving LoadCachedShortCatalog()
    CWLSetupClient :00000ED4 (09/26/2012 22:52:47.016) IsSettingsRun returning: true
    CWLSetupClient :00000ED4 (09/26/2012 22:52:47.016) HasTimeElapsed returning true
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.016) DownloadLatestCatalog()
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.016) IsShortCatalogOld returning true
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.016) Short catalog is old. Downloading new one.
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.017) Using 'http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-12092614/~l-en/config.xml' for short catalog source (URL)
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.017) DownloadAndVerifyFile() Id=ShortCatalog pwzURL=http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-12092614/~l-en/config.xml, pwzDestinationPath=C:\Users\__USERNAME__\AppData\Local\Microsoft\Windows Live\Installer\Catalog\short.xml
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.017) Downloading http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-12092614/~l-en/config.xml via HTTP
    WebClient :00000ED4 (09/26/2012 22:52:47.017) WebClient(055F8B00): g-link detected -- disabling BITS
    WebClient :00000ED4 (09/26/2012 22:52:47.017) WebClient(055F8B00): Beginning Async Download, id=[ShortCatalog], highPri=[true], Uri=[http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-12092614/~l-en/config.xml]
    WebClient :000011B8 (09/26/2012 22:52:47.018) WebClient(055F8B00): Background thread started
    WebClient :000011B8 (09/26/2012 22:52:47.018) WebClient(055F8B00): Download attempt #1 (max 0)
    WebClient :000011B8 (09/26/2012 22:52:47.018) WebClient(055F8B00): BeginDownloadAttempt: using URLMon
    WebClient :000011B8 (09/26/2012 22:52:47.578) WebClient(055F8B00): OnStopBinding(), hr=0x00000000, wzError=[]
    WebClient :000011B8 (09/26/2012 22:52:47.579) WebClient(055F8B00): WaitForDownloadAttempt()
    WebClient :000011B8 (09/26/2012 22:52:47.581) WebClient(055F8B00): Background thread exiting, hr=0x00000000
    CatalogDownload:000011B8 (09/26/2012 22:52:47.581) Catalog download finished.
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.582) Loading and parsing new short catalog
    CatalogDownload:00000ED4 (09/26/2012 22:52:47.583) No applicable update node found for current machine/client version
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving GetAppropriateUpdateNodef()
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving LoadCachedShortCatalog()
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving DownloadShortCatalog()
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving DownloadLatestCatalog()
    !ERROR! :00000ED4 (09/26/2012 22:52:47) SOURCE=CWLSetupClient, CODE=0x80280004 Leaving ThreadProc()
    CWLSetupClient :00000ED4 (09/26/2012 22:52:47.585) GetProductStatusEx() returning status 0
    CWLSetupClient :00000ED4 (09/26/2012 22:52:47.586) Entering Terminate()
    CWLSetupClient :00000ED4 (09/26/2012 22:52:47.586) Setting local termination event
    Logger :00000ED4 (09/26/2012 22:52:47.587) Logger Shutdown (collection=Yes; upload=Yes; InternalLogUpload=Yes; maxcabsize=300 Kb)
    Looks like Photo Gallery (or other Live Essential 2012 components) tries to upgrade every time it runs? I don't mind it doing so althought it didn't alert me at all, but it shouldn't leave tonz of rubbish. 
    How can I disable this auto-update?
    Thanks

    Though I am using ONLY Windows Live Mail 2012 in Windows 7 SP1 64bit OS, I am getting the same problem as you.
    So I wonder it is not "Photo Gallery" matter.
    And why MODERATOR  can't search the cause why it happened to him ?
    Logs.cab contains 11 files same as him.
    one file named as 2015-03-21_20-38_13f4-yk4oabul.log is like this;
    Logger         :0000145C (03/21/2015 20:38:34.992) Logger Initialized, LogID=[EC1ADCC8-5C6E-4B36-A6E8-6A41FB0929C6]
    LOG            :0000145C (03/21/2015 20:38:34.992) Image: C:\Program Files (x86)\Windows Live\Installer\wlshim.dll
    LOG            :0000145C (03/21/2015 20:38:34.992) X-AppName: WLUpdate
    LOG            :0000145C (03/21/2015 20:38:34.992) X-AppVersion: 16.4.3528.0331
    LOG            :0000145C (03/21/2015 20:38:34.992) Version: 16.4.3528.0331
    LOG            :0000145C (03/21/2015 20:38:35.344) Flavor: SHIP
    LOG            :0000145C (03/21/2015 20:38:35.344) Date: Mar 31 2014 (21:12:06)
    LOG            :0000145C (03/21/2015 20:38:35.354) CommandLine: "C:\Program Files (x86)\Windows Live\Mail\wlmail.exe"
    LOG            :0000145C (03/21/2015 20:38:35.354) Windows: 6.1 (7601) [100]
    LOG            :0000145C (03/21/2015 20:38:35.354) Windows ServicePack: Service Pack 1
    LOG            :0000145C (03/21/2015 20:38:35.444) Processor: 4 processor(s), architecture=amd64
    LOG            :0000145C (03/21/2015 20:38:35.444) Memory: 6273116 KB, 4234476 KB available
    LOG            :0000145C (03/21/2015 20:38:35.444) Locale: System=1041, UI=1041
    LOG            :0000145C (03/21/2015 20:38:35.444) Locale: ja-JP
    LOG            :0000145C (03/21/2015 20:38:35.444) X-UMID: 9E22100A-CE9C-4530-97D7-0C8BCABE41FA
    LOG            :0000145C (03/21/2015 20:38:35.534) X-UUID: FDBDA800-D7D3-46B2-BC24-B9E16DD7B6FB
    Logger         :0000145C (03/21/2015 20:38:35.534) OS String: 6.1.7601sp1.0x64-Wrk-1(1041;1041;ja-JP)Win7
    LOG            :0000145C (03/21/2015 20:38:35.634) Default Browser: iexplore.exe
    LOG            :0000145C (03/21/2015 20:38:35.634) Uptime (milliseconds): 434166
    ExeUtil        :0000145C (03/21/2015 20:38:36.224) TrustLevel: REQUIRE: REAL
    CWLSetupClient :0000145C (03/21/2015 20:38:48.408) Entering GetLanguage()
    !WARNING!      :0000145C (03/21/2015 20:38:49) SOURCE=SQM, CODE=0x80070108 Failed to upload SQM session data.
    !WARNING!      :0000145C (03/21/2015 20:38:49) SOURCE=SQM, CODE=0x80070108 Failed to upload SQM session data.
    CatalogDownload:0000145C (03/21/2015 20:38:50.451) Init()
    CatalogDownload:0000145C (03/21/2015 20:38:50.451) Using language: 'ja'
    UnpackManager  :0000145C (03/21/2015 20:38:50.763) WLUnpacker not found in resources
    SecureCache    :0000145C (03/21/2015 20:38:50.763) getting local Administrators Group's SID
    SecureCache    :0000145C (03/21/2015 20:38:50.826) setting directory ACLs [C:\Program Files (x86)\Common Files\Windows Live\.cache]
    !WARNING!      :0000145C (03/21/2015 20:38:50) SOURCE=SecureCache, CODE=0x80070005 leaving _setSecureCacheDirectorySecurity()
    SecureCache    :0000145C (03/21/2015 20:38:50.966) Cache version matches expected: 1
    Cert           :0000145C (03/21/2015 20:38:51.387) Verifying signature of file=[C:\Program Files (x86)\Common Files\Windows Live\.cache\wlc41B4.tmp]...
    CatalogDownload:0000145C (03/21/2015 20:38:51.528) Cached catalog version: '16.4.3528.0331', short catalog raw version: 'ship.client.main.w5m4--RR1BLDF038-2014-04-01T05:44:12.5238180Z-16.4.3528.0331'
    CatalogDownload:0000145C (03/21/2015 20:38:51.621) Loading and parsing new short catalog
    Rules          :0000145C (03/21/2015 20:38:51.621) RULE: skipped unknown node 'rule'
    Rules          :0000145C (03/21/2015 20:38:51.621) RULE: skipped unknown node 'rule'
    CatalogDownload:0000145C (03/21/2015 20:38:51.793) No applicable update node found for current machine/client version
    !ERROR!        :0000145C (03/21/2015 20:38:51) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving GetAppropriateUpdateNodef()
    !ERROR!        :0000145C (03/21/2015 20:38:51) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving LoadCachedShortCatalog()
    CWLSetupClient :0000145C (03/21/2015 20:38:51.793) IsSettingsRun returning: true
    CWLSetupClient :0000145C (03/21/2015 20:38:51.793) HasTimeElapsed returning true
    CatalogDownload:0000145C (03/21/2015 20:38:51.887) DownloadLatestCatalog()
    CatalogDownload:0000145C (03/21/2015 20:38:51.887) IsShortCatalogOld returning true
    CatalogDownload:0000145C (03/21/2015 20:38:51.887) Short catalog is old. Downloading new one.
    CatalogDownload:0000145C (03/21/2015 20:38:51.887) Using 'http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-15032111/~l-ja/config.xml' for short catalog source (URL)
    CatalogDownload:0000145C (03/21/2015 20:38:51.887) DownloadAndVerifyFile() Id=ShortCatalog pwzURL=http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-15032111/~l-ja/config.xml, pwzDestinationPath=C:\Users\__USERNAME__\AppData\Local\Microsoft\Windows
    Live\Installer\Catalog\short.xml
    CatalogDownload:0000145C (03/21/2015 20:38:51.949) Downloading
    http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-15032111/~l-ja/config.xml via HTTP
    WebClient      :0000145C (03/21/2015 20:38:51.949) WebClient(0C5DBD70): Beginning Async Download, id=[ShortCatalog], highPri=[true], Uri=[http://g.live.com/1reupdate/short?!/~Live.ConfigServer.SuiteUpdate/~/~/~/~/~op-GetShortCatalog-ship/~ts-15032111/~l-ja/config.xml]
    WebClient      :000019C0 (03/21/2015 20:38:51.949) WebClient(0C5DBD70): Background thread started
    WebClient      :000019C0 (03/21/2015 20:38:51.949) WebClient(0C5DBD70): Download attempt #1 (max 10)
    WebClient      :000019C0 (03/21/2015 20:38:51.949) WebClient(0C5DBD70): BeginDownloadAttempt: using BITS
    WebClient      :000019C0 (03/21/2015 20:38:52.573) WebClient(0C5DBD70): BITS temporary file=[C:\Users\SHIRON~1\AppData\Local\Temp\wctDFFC.tmp], foreground download=true
    WebClient      :000019C0 (03/21/2015 20:38:52.635) WebClient(0C5DBD70): WaitForDownloadAttempt()
    WebClient      :00001438 (03/21/2015 20:38:53.540) WebClient(0C5DBD70): Download of 'ShortCatalog' finished successfully.
    WebClient      :000019C0 (03/21/2015 20:38:53.540) WebClient(0C5DBD70): Background thread exiting, hr=0x00000000
    CatalogDownload:000019C0 (03/21/2015 20:38:53.540) Catalog download finished.
    CatalogDownload:0000145C (03/21/2015 20:38:53.587) Loading and parsing new short catalog
    Rules          :0000145C (03/21/2015 20:38:53.587) RULE: skipped unknown node 'rule'
    Rules          :0000145C (03/21/2015 20:38:53.587) RULE: skipped unknown node 'rule'
    CatalogDownload:0000145C (03/21/2015 20:38:53.587) No applicable update node found for current machine/client version
    !ERROR!        :0000145C (03/21/2015 20:38:53) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving GetAppropriateUpdateNodef()
    !ERROR!        :0000145C (03/21/2015 20:38:53) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving LoadCachedShortCatalog()
    !ERROR!        :0000145C (03/21/2015 20:38:53) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving DownloadShortCatalog()
    !ERROR!        :0000145C (03/21/2015 20:38:53) SOURCE=CatalogDownloader, CODE=0x80280004 Leaving DownloadLatestCatalog()
    !ERROR!        :0000145C (03/21/2015 20:38:53) SOURCE=CWLSetupClient, CODE=0x80280004 Leaving ThreadProc()
    CWLSetupClient :0000145C (03/21/2015 20:38:53.665) GetProductStatusEx() returning status 0
    CWLSetupClient :0000145C (03/21/2015 20:38:53.712) Entering Terminate()
    CWLSetupClient :0000145C (03/21/2015 20:38:53.712) Setting local termination event
    Logger         :0000145C (03/21/2015 20:38:53.727) Logger Shutdown (collection=Yes; upload=Yes; InternalLogUpload=Yes; maxcabsize=300 Kb)
    POSTed : 23 March 2015

  • HP 8500 - Cannot get network folder for scans (Mac OSX 10.5.6) to work

    Trying to get the network path set up for saving scans from the printer.....I've gone into the network (Ethernet, wired) configuration for the printer at its IP address from my MacBook Pro.
    Under the setting where I create a network folder to store scans, I entered the network path to a folder on the mac, enabled file sharing, and entered my user name and password.
    However, when I "Save and Test" (or Test and Save, whichever), it comes back saying the user name and password are incorrect.
    Huh?
    I've checked this a dozen times and also tried to prefix the user name with the machine name.
    What's a little disconcerting is that the instructions on this Web page (for setting up the scan folder for the printer) say to enter the "Windows" user name and password. No mention of the Mac.
    Not sure what's wrong.
    I entered for the path:
    \\MacBookPro\Users\Mork\temp
    (temp is a valid folder)
    I entered the user name and password I use to login to the machine
    I then get the error.
    Any ideas what's wrong?
    I tried to use Mac paths with forward slashes, but the Website for the printer said this was an error right away.
    (Confused).
    Thanks.
    - M

    The support for the scanning is built into the Mac. This link tells you how to do it.
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01846935&tmp_track_link=ot_recdoc/c01627041/en_​...
    Go to the System Preferences under the apple menu.
    Select Print & Fax
    Open Scanner
    Click Open Scanner
    The last pull down menu on the left selects the folder. Change it to what you want and you don't have to worry about the network path and it will work!
    To scan, click the scan button.
    I tested it and it was such a relief to see the file appear in the folder. I hope this helps someone!

  • Where to get Sequence name for logging into Database?

    Hello
    I need to create a custom schema for database logging which consists of a table to log Sequence name and its Execution status(Pass|Failed),
    this will include the name of sequence along with the sub sequences executed from sequence file.
    Please let me know from where i can get a property to access the sequence and sub sequence name.
    Regards
    Nitin Goel

    Thanks for information i hope this will be helpfull but before that i need to know that how do i add a new Column in the statement "SEQUENCE_SEQCALL" which is also present in the Generic Recorset Schema. I tried to make a new schema and copied "SEQUENCE_SEQCALL" statement and then added a new column "Status" with expression "NameOf( RunState.Sequence)" and saved the changes.
    On executing the sequence with database logging enabled i get an error, see attached image for the error.
    Attachments:
    Error.JPG ‏35 KB

  • Temp folder for FTP Export Plugin

    I am having trouble with a plugin that someone on my staff created.  It utilizes the FTP export LUA files, and I am not certain WHERE the files are temporarily stored prior to upload.
    The problem is intermittent, wheas the images sometimes appear partial / corrupt/ or solid black.   I solve it by re-uploading.
    Does anyone know where / how to find the temp location?
    Thanks in advance!

    during export the source path is readily available as rendition.photo:getRawMetadata( 'path' ) - is that what you meant?
    I think that's exactly what I was looking for.  In quick test it looks like it will work great. 
    Again, I'm a newbie to Lightroom SDK.  I figured that what I wanted was probably simple, but after spending over an hour searching on keywords that didn't find a good answer, I figured it was time to ask a human.
    Many thanks for the quick and very helpful reply!
    --Rik

  • Temp folder and Creative Cloud

    Is Creative Cloud or CC Applications using Windows Temp folder? I use to delete regularly the contents of this folder.

    The temp folder under Windows is used by CC for saving temporarily available updates or complete application downloads while the download and install process is going on through CC desktop app. The Local/Temp folder for your user account contains useful logs like amt3, oobelib and PDApp logs which can be used by Adobe technical support for investigation purposes on encountering application malfunctioning issues. You may clean both Temp folders but by skipping these above files listed.

  • Function module to get the file path in the system for TEMP folder

    Hi All,
    Is there any function module that I can use to get the file path in the system for TEMP folder.
    I mean, i am supposed to give only TEMP as the input for that function module and I need to get the path of that in the system as the output.
    I am unsing 4.0 version.
    Please advice.
    Regards
    Ramesh

    In Higher versions, we can use the below code:
    call method CL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_GET_VARIABLE
        exporting
          VARIABLE   = 'TEMP'
        importing
          VALUE      = LV_TMP
        exceptions
          CNTL_ERROR = 1
          others     = 2.
      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 method CL_GUI_CFW=>FLUSH
        exceptions
          CNTL_SYSTEM_ERROR = 1
          CNTL_ERROR        = 2
          others            = 3.
      if SY-SUBRC <> 0.
    Error handling
      endif.
      concatenate lv_tmp '\' into folder_path.
    But need to know in the lower versions like 3.1h and 4.0,

  • BPC Detail error/reject log not created in the PrivatePub/user/temp folder

    Hi,
    We have a custom import package that imports data from a comma seperated txt file in to BPC. If all the data members in the data file are valid dimension members the package is successful and the package log file is created in the PrivatePub/user/Temp folder. But if there are any rejects the reject log is not getting created under the temp folder and moreover the package status is "Error". The package log is created but the reject log is not. The Webfolders has the full share permissions.
    The same package runs fine in our Test environment and creates the package log and reject log.
    We are on BPC 5.1 SP3.
    Is there a configuration that is missing.
    Thanks in advance.
    Swaroop

    I'm pretty sure that when you do not explicitly indicate a transformation file, a default file (import.xls I think?) is used.
    Also, there are a number of temp files & variables that must be created in the MODIFYSCRIPT variable, and certain conversion tasks that are part of the standard import process. You can see the proper syntax in the sample import pacakges.
    If you've created a new package of your own, you may be missing some key pieces. If you don't understand what all the pieces are in the sample packages (and why you don't need them), you should start by debugging with one of them, and then see what you need to add back into your package.
    I'd normally recommend to start with the sample import package, and only modify it if necessary, and as little as possible.
    Last thought - file permission... does the user running the package (not the end user logged into BPC, but the BPC data manager user, which I believe is the "USER" (not admin or sysadmin) set up during the server install) have appropriate access rights to that network share where the data file is located? Try changing it to a local path, and copy the test.txt to that location.

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Temp folder was not set for RTFStringbuffer Error

    Hi,
    We are using CR XI 11.0.0.895 and CR XI JRC is been used to generate the reports in PDF and RTF format.
    While generating report of more than 1000 pages in RTF format throws the below mentioned exception
    temp folder was not set for RTFStringbuffer
    However, Generating reports in PDF format generates the report.
    Find below the environment details which would helpful for the analysis.
    CR XI 11.0.0.895
    IE 6.0
    MS-office 2003
    Windows XP SP2
    Reports JRC application deployed on Weblogic 8.1.4
    Please suggest us a solution for this problem.
    Thanks in advance.

    If you run [Process Monitor|http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx], do you see any file access errors when the JRC tries creating a temp RTF file?
    I think I've recommended this before, but have you tried the newest version of the JRC?
    [https://boc.sdn.sap.com/node/19020]
    The XI Release 1 keycode will work with it.
    Sincerely,
    Ted Ueda

  • Why am I still getting this message after logging in - This computer is no longer authorized for apps that are installed on the iPhone "Myron Liptzin's iPhone". Would you like to authorize this computer for items purchased from the iTunes Store?

    why am I still getting this message after logging in?  "This computer is no longer authorized for apps that are installed on the iPhone “*************s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store?"  - after I have logged in and get the message that the computer is already authorized!!!?? - and then the above message pops up again?

    Click here and follow the instructions.
    (71175)

  • I keep on getting an error when logging onto my whatapp telling me about connecting to itunes, Ive now backed up and restored but im still getting the same message connect ot itunes for push messages

    I keep on getting an error when logging onto my whatapp telling me about connecting to itunes, Ive now backed up and restored but im still getting the same message connect ot itunes for push messages

    Hello there, Minig1501.
    The following Knowledge Base article has some information on the message you're receiving:
    Unable to use Apple Push Notification service (APNs)
    http://support.apple.com/kb/TS4264
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • I restored my hard drive with time machine but when I log in I get "home folder protected by fire vault and needs to be repaired. But I can't get past the regular log

    I restored my hard drive with time machine but when I log in I get "home folder protected by fire vault and needs to be repaired. But I can't get past the regular log

    Maybe you might find some info to the right>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

  • Use global temp table for DML error logging

    our database is 11.2.0.4 enterprise edition on solaris 10
    we are wondering if anyone has an opinion of or has done this before, to use a global temp table for DML error logging. We have a fairly busy transactional database with 2 hot tables for inserts. The regular error table created with dbms_errlog has caused many deadlocks which we don't quite understand yet. we have thought using global temp table for the purpose, and that seemed to work, but we can't read error from the GTT, the table is empty even reading from the same session as inserts. Does anyone have an idea why?
    Thanks

    The insert into the error logging table is done with a recursive transaction therefore it's private from your session which is doing the actual insert.
    Adapted from http://oracle-base.com/articles/10g/dml-error-logging-10gr2.php
    INSERT INTO dest
    SELECT *
    FROM  source
    LOG ERRORS INTO err$_dest ('INSERT') REJECT LIMIT UNLIMITED;
    99,998 rows inserted.
    select count(*) from dest;
      COUNT(*)
        99998
    SELECT *
    FROM  err$_dest
    WHERE  ora_err_tag$ = 'INSERT';
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    1000        Description for 1000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    10000        Description for 10000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    1000        Description for 1000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    10000        Description for 10000
    rollback;
    select count(*) from dest;
      COUNT(*)
            0
    SELECT *
    FROM  err$_dest
    WHERE  ora_err_tag$ = 'INSERT';
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    1000        Description for 1000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    10000        Description for 10000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    1000        Description for 1000
    1400    "ORA-01400: cannot insert NULL into ("E668983_DBA"."DEST"."CODE")"        I    INSERT    10000        Description for 10000

Maybe you are looking for

  • Problem in Exporting a Report Group having a Report Painter Report.

    I am having a problem in exporting a Report group having a Report Painter report.When I am trying to export the Report Group using transaction GR57 with all dependent objects,it is displaying:        group 0102CPDNUEA-CCROSI not transported.        T

  • Mac wont play online videos and photobooth is pink and green pixels?

    Recently my MacBook Pro has been very slow and has now decided not to play videos on E.g Youtube. I thought it was just the internet playing up, but going to use PhotoBooth the camera screen is all pink and green pixels?? Overall my mac is very slow

  • Bind variable with search parameter in Oracle BI Publisher 10

    Search list for a search parameter in Oracle BI EE works fine when the query doesn't contain a bind variable (parameter identifier). But when a bind variable is introduced in the constraint of search list query, it keeps on searching endlessly. For e

  • Implementing a Web Dynpro Java Callable Object in GP using a R/3 Model

    Hi to all, my scenario is that I have to Implement a WD Java Callable Object (as descripted in this example https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814) but I want to get datas from an R/3

  • Creating a 30 second loop

    Hello, I'm trying to take the first 33 seconds of a classical song and loop it 3 or 4 times. Then I need to add it to a play list on my ipod. Can I do this in itunes? Do I need to use garage band? Is there a way to fade the last few seconds of the se