FileExists() using web-root, not absolute path...

Is there a way to use FileExists() with some sort of %webRoot% system variable, rather than me having to know the absolute path in advance?  For example if my app is running on one machine where the webroot is C:\ColdFusion9\webroot\ and on another machine where it's E:\Inetpub\webroot, is there a way for me to write a single piece of code that will check for the existence of "%webroot%\webSite\myFile.cfm"?
I guess what I'm really looking for here, is a system variable called something like %webRoot% in ColdFusion 9...  Does such an animal exist?
Thanks,
Laurence MacNeill
Mableton, Georgia, USA

Let assume my function is contained in a .CFC file in C:\Inetpub\webroot\myapp\mycfcs
So if I used the following statement:
<cfif FileExists(ExpandPath(..\newcfcs\AttendeeInfo.CFC))>
it would return true if the file C:\Inetpub\webroot\myapp\newcfcs\AttendeeInfo.CFC existed, yes?
If that's the case, then great -- thanks!
L.

Similar Messages

  • I am unable to use Web based Note Editor in my Ipad

    I am unable to use web based note editor in my ipad whereas it is working in my Mac Book and Iphone. Can u plz help?

    So are you saying that when you go to the same web page as them, your browser shows something different to what their browser shows them ?  Can you literally email one URL back and forth and get different results, or is the URL different for different users ?
    Do you have to log in to anything on the web server to get to that point ?  Might it be that your account doesn't have the same access their account has ?
    Can you try letting them use your iPad temporarily and see whether it continues to work for them ?

  • Opening a separate form using Web.show_documen not working as intended

    My intent is to open a form in a totally different session from another form.
    I want to open FORM B from a trigger in FORM A and I want both to be active simultaneously.
    To achieve that I thought to use web.show_document in completely new borwser window from a trigger in FORM A.
    web.show_document (FORM_B_LINK,'_blank');
    But both forms still share same JRE session (according to Metalink Tech support.)
    Now what is happening is that FORM B opens(only if I use Synchronize after web.show_document call ) but FORM B is not active whenever FORM A is doing something. So they both are not active together.
    Please help me here how can I open two separate forms session.
    BTW, I can not use OPEN_FORM or CALL_FORM for various reasons
    Thanks in advance for your help

    Unless you have other reasons that contradict this, I
    cannot see anything that you can do with two browser
    windows that you cannot do with using
    OPEN_FORM(SESSION). That in effect creates two
    database sessions that are independent of each other
    and you should be able to do what you want.Hi Jan,
    Actually its not database session I'm worried about it is FORM session that is worrying me. Both FORM A and FORM B can not execute some code at the same time as they share same forms session (as far as I know).
    Let me explain my situation again. We have a PLL which is attached to lots of forms.
    This pll has functionality to perform some on-demand internal jobs like executing a report or exporting block data to execl or html etc). Depending upon the Job it may take some from few seconds to several minutes to finish the job.
    What I have to do add is the ability to monitor progress of the job and give our users ability to stop that job.
    And I think I can not achieve that using OPEN_FORM.

  • Flash using web serives not always working

    Hello, I have a web site using web services to load data into
    drop downs lists. This has been working fine for awhile, but now I
    have a few users that have no data being populated in the lists.
    What could cause this to happen on a a few users machines.
    Thanks
    Don

    hi
    try something like this to upload.
    declare
    l_file_name varchar2(383);
    begin
    l_file_name := webutil_file.file_open_dialog( );
    if
      l_file_name is not null
    then
      if
        :image_item.rowid is not null
      then
        create_record;
      end if;
      client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'block.image_item' );
    end if;
    end;just for testing................plz check.
    hope this helps you.
    sarah

  • How to pass parameter between two jsp pages using web link (not form)

    Hi Friends,
    I have two jsp pages and would like to pass a parameter from one JSP page (one.jsp) to another JPS page (two.jsp)
    in one.jsp
    <a href="two.jsp?ant="<%=ant%">"> <%=antName%> </a><br>
    I don't know how to pass value of parameter "ant" to two.jsp from one.jsp.
    Can anyone help this? Thank you in advance</a>

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • Absolute path of current directory?

    Hi,
    I finished up an assignment the other day. But I've been playing around with it to see how much
    extra junk, in addition to the requirements, I can add, all in one method(we haven't covered
    user defined methods yet). I added a cheezy console splash screen. A really cheezy help file
    system. Figured out how to add time and date stamps. And some code to allow the user to
    continue the program and generate multiple reports with unique filenames. I added some
    input validation, user has to enter the name of a database to sample. All the files are plain text.
    What I'm trying to do is, add a better validation system so the program doesn't terminate if the
    user enters a database name that isn't in the directory. All the files will be in the directory where
    the program resides, so that eliminates some headaches.
    I was thinking of doing it like this: when a user enters a name check to see if the name is on the list
    (I guess java is already doing this that why the error is generated)
    if not, output error message and print the valid list to standard out. Prompt user to re enter a
    valid name.
    I'm sure there are more sophistcated ways to do this but I'm trying to work with what I kinda know.
    So far I've managed to figure out how to list the files in the program's home directory. By
    using the dir's absolute path on my machine. But this wont work on another computer. I'm
    pretty sure I can figure out how to add a filter so only certain file types will be listed.
    Is there a way to have the program get the absolute path of the program's directory no
    matter what computer it is on??
    I could go from there pretty easily, I'm hoping.
    Thanks for any direction,
    bill

    ooops... That is not working quite right.What is not working and how?Actually I did get some good results.
    Here is the code I came up with over the last hour or so.
    String curDir = System.getProperty("user.dir");
             System.out.println(curDir);
              File dir = new File(curDir);
                  String[] children = dir.list();
                  if (children == null) {
                  } else {
                      for (int i=0; i<children.length; i++) {
                          String filename = children;
              if(filename.length()<20&&filename.charAt(0)!='.')
              System.out.println(filename);
    This seems to work OK. It identifies and stores the path
    of the directory where java was invoked. And prints to the console
    a listing of available files to choose from. I trying to figure out
    how to better filter the in/output to hide the .java and .class files.
    Tonight I'm really just having fun
    googling, cutting, pasting, modifing snippetts to see if I can make my
    computer do what I want it to. I'm very new at this, just my way of
    learning stuff out of the class room.
    Thanks again,
    if you have any tips, I sure would appreciate it.
    Bill

  • How to read images in jsp from an absolute path not from the web app?

    hello there
    i want to read images from an absolute path on the hard disk not from the images folder in the web application
    how to do that?
    thank you

    Ok. You don't give the servlet the full path of an image. You just give an image id in query string. E.g.
    http://my.server.com/imageServlet?id=12Id can be whatever: number as well as name.
    Then, in your servlet You get this id, then read an image file that is mapped for this id and sends it to browser via servlet output stream.
    On the jsp page you write sth similar to:
    <img src="http://my.server.com/imageServlet?id=12"/>and your image will be displayed using your servlet. The image file path is needed only in the servlet code to open the stream to file (image file can be stored wherever you want in file system), read it and write to output stream. Read the tutorial accessible via link I provided in the previous post.

  • Images using absolute path on portlet server not appearing when gatewayed

    I am gatewaying several applications via a Plumtree 5 Portal. Images in these applications when referenced using relative paths (../images/image.jpg) work. Images using absolute path (\applicationFolder\images\image.jpg). When gatewayed they are presented like this:
    http:\\plumtreeServer\portal\server.pt\gateway\PTARGS_0_212_252_0_0_43/https:%3B/remoteServer/applicationFolder/Web/\applicationFolder\images\image.jpg
    Any help would be greatly appreciated.

    I am gatewaying several applications via a Plumtree 5 Portal. Images in these applications when referenced using relative paths (../images/image.jpg) work. Images using absolute path (\applicationFolder\images\image.jpg). When gatewayed they are presented like this:
    http:\\plumtreeServer\portal\server.pt\gateway\PTARGS_0_212_252_0_0_43/https:%3B/remoteServer/applicationFolder/Web/\applicationFolder\images\image.jpg
    Any help would be greatly appreciated.

  • Absolute paths to eclipse project root? Why?

    I am a dedicated follower of the Flex and related technologies since its first appearance (some years back, Flex 1.5)
    Flash Builder (formerly Flex Builder) back then (version 2) seemed to have a problem with paths relative to project location.
    More precisely, parts of generated projects always point to absolute locations either inside or outside the eclipse project workspace.
    Unfortunately, the problem still persists. In the past I had reported this issue (long time to remember/extract details now) but without success as it seems.
    This is very important for projects intended to be developed by more than one persons (different development machines, different paths etc.)
    for an example, with Flash Builder 4, create a new Flex project (Web), activate WTP integration, complete project generation and then check files
    .actionScriptProperties and .flexProperties
    you will observe absolute path references to essential files
    here is an example of my .actionScriptProperties
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <actionScriptProperties mainApplicationPath="Main.mxml" projectUUID="43b42874-f3f0-4b6b-932c-6a1d4e492b56" version="6">
    <compiler additionalCompilerArguments="-services &quot;D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/services-config.xml&quot; -locale en_US" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath/>
    <libraryPath defaultLinkType="0">
    <libraryPathEntry kind="4" path="">
    <excludedEntries>
    <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
    </excludedEntries>
    </libraryPathEntry>
    <libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
    <libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/fds.swc" useDefaultLinkType="false"/>
    <libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/player/playerfds.swc" useDefaultLinkType="false"/>
    <libraryPathEntry kind="1" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/locale/{locale}"/>
    </libraryPath>
    <sourceAttachmentPath/>
    </compiler>
    <applications>
    <application path="Main.mxml"/>
    </applications>
    <modules/>
    <buildCSSFiles/>
    </actionScriptProperties>
    here is a copy of my .flexProperties
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <flexProperties enableServiceManager="false" flexServerFeatures="6" flexServerType="8" flexWarLocation="D:/lcds/lcds.war" serverContextRoot="/WebContent" serverRoot="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent" serverRootURL="http://localhost:8400/net.eliasbalasis.flex.web.sample" toolCompile="true" useServerFlexSDK="false" version="2"/>
    D:/lcds/lcds.war i suspect is fine because it is the location of the LiveCycle Data Services WAR used to create the project (it is external anyway)
    However, D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent is not fine at all. It is a location inside the project workspace. It should be referenced using some kind of variable, similarly to ${PROJECT_FRAMEWORKS} above.
    I observed that there is a variable ${DOCUMENTS} under Eclipse-->Preferences-->Workspace-->Linked Resources which references the Eclipse project workspace root (extremely convenient).
    Unfortunately, it seems that this variable can only be used within the context of other eclipse configuration files like .project and .classpath but not within the context of .actionScriptProperties and .flexProperties
    This is the same exact issue I reported in the past (see above)
    Flex Builder/Flash Builder family of products are the only Eclipse Based tools I have so far worked with that have such a big trouble handling file path locations relative to eclipse workspace root
    OOPS. CORRECT ME IF I AM WRONG PLEASE.
    I just replaced the eclipse workspace root with ${DOCUMENTS} and the project still compiles and generates deployment packages successfully.
    Perhaps the "Linked Resources" variables work in the context of flex configuration files.
    However I am not 100% sure.
    Please verify or otherwise provide a solution, as I am ready to select Flex technology products for the development of a new quite complex, multi developer, large scale system and this will be the only reason making me consider abandoning Flex and use other technology products

    I loooove Eclipse for reason.
    Yes, you are right, use of variables is great thing.
    However, there are 2 ways
    1.
    Use all paths relative to Eclipse workspace root. No absolute paths anywhere and No variables.
    2.
    Use tool-supplied variables (like ${DOCUMENTS} supplied by FB4 plugin pointing to Eclipse document root)
    However, although the variable is supplied by FB4 plugin, when a project is generated its files still contain absolute path references
    I had to manually introduce the ${DOCUMENTS} variable in project files discovering that variables work in the context of FB4 plugin project files.
    In earlier versions of FB plugin variables where not processed.
    Congratulations FB4 team, you saved the day.
    All I am saying is that there shouldn't be absolute paths in generated FB project files. Replacing manually currently works but it is not the easiest thing for all users. I happened to know where to look. Others may not.
    I believe FB team has to consider making actual use of the supplied variables in next version of FB (or alternatively, not use variables at all)
    p.s.
    You will love Eclipse, trust me :-)

  • Problem with absolute path and context using Tomcat 4

    I added the following line to my server.xml:
    <Context path="/track" docBase="track" />Now I have used absolute paths(ex: /includes/css/style.css) throughout my code and it worked when I served my application from the ROOT context but when I moved it to the /track - the paths did not include the new root context.
    So instead of looking at http://localhost/track/includes/css/style.css it still looks at http://localhost/includes/css/style.css.
    Is there any kind of setting I am missing in the web.xml or server.xml? I really would like to be able to use absolute paths relative to the context root.
    Please help! Thanks in advance.
    -Chris

    Hi,
    I am not sure what exactly you are asking but here is my shot. If one tomcat is serving more than one application then the only way for tomcat to know which application to refer is by looking at the context path. Since you have the context path of /track then it should appear in all of your urls being directed to the server (for both servlet and jsp). Since you have used absolute path in all the cases either you will have to change the absolute path or you will have to define them relative (which is a better idea) to a base dir. Hope it helps.
    I added the following line to my server.xml:
    <Context path="/track" docBase="track"
    />Now I have used absolute paths(ex:
    /includes/css/style.css) throughout my code and it
    worked when I served my application from the ROOT
    context but when I moved it to the /track - the paths
    did not include the new root context.
    So instead of looking at
    http://localhost/track/includes/css/style.css it still
    looks at http://localhost/includes/css/style.css.
    Is there any kind of setting I am missing in the
    web.xml or server.xml? I really would like to be able
    to use absolute paths relative to the context root.
    Please help! Thanks in advance.
    -Chris

  • Oracle BI Publisher desktop - insert field does not make absolute path

    Hello everyone,
    I am using the Oracle BI Publisher desktop 11.1.1.5
    Lets have the given demodata
    <demodata>
         <person>
         <name>Peter</name>
         </person>
         <relative>
         <name>Mike</name>
         </relative>
    </demodata>
    As you can see the tag <name> is used as subchild in person, relative.
    next i start winword 2007 using the bip-extension. There is a button 'insered field' that opens a window with the demodata tree.
    When i pick person->relation->name there will be the expression <?name?> insered.
    Thats my problem, i need the absolute path to be insered, in this case <?/demodata/relation/name?>
    If the adressing is not absolute starting from the root the rendered Report will show 'Peter' as it is the first occurence of the <name> tag.
    I have not find out where to configure the word-plugin to make absolute paths in fields.
    Any ideas ?

    Thank you for your answer
    sure, it is possible to edit the fields by hand but my xml-structure is autogenerated (MDA-approach), nested and quiet complex. Manual tasks can lead to typing errors and sometimes i forget to edit one field afterwards.
    It would be just very handy when the tool does the work for me, it has all the information anyway.
    I wonder why am the first person that is having this request. In my opinion adressing starting from the root is clear and without ambiguity. In every field i can exactly read using the expression which element in the tree is used.
    In conclusion, it would be nice if the plugin let the user decide whether to use the short or the long syntax
    greetings,
    martin.

  • Can I link to images using absolute paths in HTML Help and still see them locally?

    I'm publishing HTML help pages to a Web server.  All .htm files on the Web server are in their own folder, and all image files are in a separate folder.  Links to images are generally of the form <img src="/images/clear.png" height="14" width="8">.  That is, the images use an absolute path reference from the doc root folder (rather than relative path from the current file folder, such as "../images/myImg.png").
    I can modify the HTML for the images to follow this convention, but then I cannot see the images locally within RoboHelp, but must instead wait until the files are integrated with the Web server.  Is there a way to set up a RoboHelp project so that I can force an image path of "/images" both locally and in the HTML?
    Using RoboHelp 9.0.1.232.
    Thanks.

    RoboHelp expects the images to be within the project and will need that if you are to see them when working. It then uploads them to the server when you publish.  There is a check box when you publish so that only updated files get  uploaded.
    You could point Resource Manager to the server folder with the images and then link to those images. What happens then is the image gets downloaded into your project so that you see it when working. If the server image changes you will see the icon in Project Manager changes so that you can update the local copy. It would be a one-off exercise changing your workflow.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Systemd Unit - Executable is not an absolute path

    I have installed powertop following this:
    How to improve battery life using powertop
    I have created file "/usr/local/bin/powertop_tuning.sh" and I have set some line within it.
    Then I have done this file as executable:
    sudo chmod +x /usr/local/bin/powertop_tuning.sh
    Finally I create a service using systemd:
    sudo $EDITOR /lib/systemd/system/powertop_tuning.service
    and I set its content to:
    [Unit]
    Description="PowerTop Tuning config"
    ConditionPathExists=/usr/local/bin/powertop_tuning.sh
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    KillMode=none
    ExecStart=/usr/local/bin/powertop_tuning.sh
    ExecStop=exit
    [Install]
    WantedBy=multi-user.target
    and set it to start automatically:
    udo systemctl enable powertop_tuning.service
    When I reboot my system, on boot time below message is shown:
    systemd[1]: [/usr/lib/systemd/system/powertop_tuning.service:10] Executable path is not absolute, ignoring: exit
    Service status is:
    [toni@toni ~]$ systemctl status powertop_tuning.service
    ● powertop_tuning.service - "PowerTop Tuning config"
    Loaded: loaded (/usr/lib/systemd/system/powertop_tuning.service; enabled)
    Active: active (exited) since sáb 2014-11-22 15:35:43 CET; 1h 4min ago
    Process: 492 ExecStart=/usr/local/bin/powertop_tuning.sh (code=exited, status=0/SUCCESS)
    Main PID: 492 (code=exited, status=0/SUCCESS)
    CGroup: /system.slice/powertop_tuning.service
    nov 22 15:35:43 toni systemd[1]: Started "PowerTop Tuning config".
    Last edited by toni (2014-11-22 15:42:02)

    jjacky wrote:
    First of all, you shouldn't put files in /lib; put your own service files under /etc/systemd/system that's where they belongs.
    Then, I'm not sure what the line "ExecStop=exit" is supposed to do, but it's what's causing the error and since your service simply consist of running a script once, there's no need for an ExecStop here, so you can just remove it.
    Lastly, for such things you don't have to write your own service, you could also simply add a .conf file in /etc/tmpfiles.d with content such as:
    # NMI watchdog should be turned off
    f /proc/sys/kernel/nmi_watchdog - - - - 0
    See `man tmpfiles.d` for more about this.
    so what is the difference between using a service or using /etc/tmpfiles.d?
    "/usr/local/bin/powertop_tuning.sh" file is:
    #!/bin/bash
    # Tiempo límite de reescritura VM
    echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
    # Vigilancia NMI se debe apagar
    echo '0' > '/proc/sys/kernel/nmi_watchdog';
    # Habilitar administración de energía del codec de Audio
    echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
    # Enable SATA link power management for host3
    echo 'min_power' > '/sys/class/scsi_host/host3/link_power_management_policy';
    # Enable SATA link power management for host4
    echo 'min_power' > '/sys/class/scsi_host/host4/link_power_management_policy';
    # Enable SATA link power management for host1
    echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy';
    # Enable SATA link power management for host2
    echo 'min_power' > '/sys/class/scsi_host/host2/link_power_management_policy';
    # Enable SATA link power management for host0
    echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
    # Autosuspender para dispositivo USB AS2105 [ASMedia]
    # echo 'auto' > '/sys/bus/usb/devices/4-3/power/control';
    # Autosuspender para dispositivo USB desconocido 3-6 (8087:07dc)
    # echo 'auto' > '/sys/bus/usb/devices/3-6/power/control';
    # Autosuspender para dispositivo USB Microsoft® Nano Transceiver v2.0 [Microsoft]
    # echo 'auto' > '/sys/bus/usb/devices/3-4/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1a.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:01.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:03.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI
    echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1
    echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.2/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader
    echo 'auto' > '/sys/bus/pci/devices/0000:05:00.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.5/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation HM86 Express LPC Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation Wireless 3160
    echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 4th Gen Core Processor Integrated Graphics Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
    echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control';
    # Tiempo de ejecución PM para dispositivo PCI Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4
    echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control';
    # Estado Wake-on-lan para dispositivo enp4s0
    ethtool -s enp4s0 wol d;

  • Apache Tomcat Web Root Path Disclosure Vulnerability ..any fix avaialable

    Apache Tomcat Web Root Path Disclosure Vulnerability
    do anyone know that any fix is available for this vulnerability
    my tomcat version is 5.0.28
    java 1.4
    more details my scan result
    A vulnerability was reported for Apache Tomcat Version 4.0.3 on a Microsoft Windows platform. Reportedly, it is possible for a remote malicious user to make requests that will result in Apache Tomcat returning an error page containing information that includes the absolute path to the server's Web root.
    For example, submitting a request to Tomcat for LPT9 results in the following error message: "java.io.FileNotFoundException: C:Program FilesApache Tomcat 4.0webappsROOTlpt9 (The system cannot find the file specified)".
    IMPACT:
    A malicious user can obtain the absolute path of the Web server root directory, which could aid in further attacks against the host.
    SOLUTION:
    A fix has not been released. Please check Apache's Web site for more information.my application runs well without any problem but this was the scan result submitted by my security people

    thanks for replay.
    I followed the documentation in the appache's commons datasource documentation and that worked .
    thanks once again

  • What are the reasons for using absolute paths to embedded objects in word?

    Hello,
    hopefully someone can answer me the question why word always stores the absolute paths to linked objects? We use Word for documentation and these documents are stored in a version control system and sometimes several persons are working on a document. Because
    of the absolute paths stored in the document all users would need to have the same directory structure so that the links would work for every person.
    For linked objects it's not even possible to change the absolute paths to relative paths.
    Additionally I would like to know what the difference between a "Graphic" and "Picture" object is. A graphic can be inserted by selecting "INSERT" -> "Pictures" and a "Graphic" doesn't seem to have a field
    function and always uses absolute paths. "Graphics" can be inserted by selecting "INSERT" -> "Quick Parts" -> "Field..." -> "IncludePicture" and it's possible to use relative paths for "IncludePicture"
    objects and it's possible to show the field function of a "Picture" object.
    Regards
    Martin

    This seems to be by design, not too much information about this. The thread below should be helpful for you to understand it:
    https://social.technet.microsoft.com/Forums/office/en-US/6d4445e1-cdc5-4b3b-9355-9081c963fdd9/unable-to-use-relative-object-links-in-word-office-2010-sp1
    Also, from the thread below, you will find some workarounds for this issue:
    http://windowssecrets.com/forums/showthread.php/102080-Relative-Paths-in-Word-Fields-(All)?p=584769&viewfull=1#post584769
    Aravindhan Battepati

Maybe you are looking for