Creating a directory on a different server

Hi! Is it possible that for example I have an application in server A then I want that applicaiton to create a directory or upload a file in server B?
Thanks in Advance!

Obviously it an open facility of that sort were
supplied it would be very insecure. However you can
certainly write servlets that accept data from client
systems and store it as files (using POST or PUT
transactions).ah I see so I suppose my idea would be undoable since java did not supply facility of that sort...

Similar Messages

  • API for creating a directory in the application server

    Hello,
    Does anyone knows a way to create a directory in the application server? Something similar to
    CL_GUI_FRONTEND_SERVICES but for managing files in the application server?
    Thanks in advance
    Diz IsMi

    Actually, CL_GUI_FRONTEND_SERVICES=>Directory_Create works really good for me. 
    REPORT ZRICH_0001 .
    data: path type string.
    data: rc type sy-subrc.
    path = '\172.52.72.651qfilesvr400S109XXXXusrsapTSTSYStest'.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
      EXPORTING
        DIRECTORY                = path
      CHANGING
        RC                       = rc
      EXCEPTIONS
        DIRECTORY_CREATE_FAILED  = 1
        CNTL_ERROR               = 2
        ERROR_NO_GUI             = 3
        PATH_NOT_FOUND           = 4
        DIRECTORY_ACCESS_DENIED  = 5
        DIRECTORY_ALREADY_EXISTS = 6
        UNKNOWN_ERROR            = 7
        others                   = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Rich Heilman

  • How Create Virtual Directory On Oracle Application Server 10g on RHEL 5

    Dear Sir
    i have deployed my application on OAS 10g on RHEL 5 ,,now since my application is calling some pro*c programs and then they generate some text based reports on fixed folder named
    /treas/temp
    now i simply have to open these text based reports on web browser
    WEB.SHOW_DOCUMENT('/forms/pcreport/'||v_filename);
    but for that i need to create virtual directory name : " /pcreport " without code
    kindlly help as its working on my developer suit 10g i created a virtual directory in my application server by making following entry in "orion-web.xml" file
    <virtual-directory virtual-path="/pcreport" real-path="/u/treas/temp" />
    kindlly help

    (My paths shown, yours will be different)
    In a text editor :
    /u01/app/oracle/product/midtier/Apache/Apache/conf/httpd.conf
    Add
    Alias /pcreport/ "/u01/app/oracle/product/midtier/forms/pcreport/"
    <Directory "/u01/app/oracle/product/midtier/forms/pcreport/">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Create the pcreport directory.
    Add a simple test page
    vi /u01/app/oracle/product/midtier/forms/pcreport/test.html
    <html>
    <head>
    <title>Simple test page </title>
    <style type="text/css">
    body {
    margin-left: 20%;;
    margin-right: 20%;
    border: 1px dotted gray;
    padding: 10px 10px 10px 10px;
    </style>
    </head>
    <body>
    <p>test!</p>
    </body>
    </html>
    Test
    http://yourserver.com:7777/pcreport/test.html
    Best Regards
    mseberg

  • Creating a directory & subdirectory on Application Server

    I want to create a directory on Application Server which may contain many subdirectories where in i will upload my files from my ABAP Program.
    I need to know if dynamic creation of a directory on Application Server is possible though ABAP.
    I donot want to create it manually but dynamically depending on the type of file to be put in the directory.

    If you use the complete path, this actually works.  I have tested it in my system.  It may not work in background though.  I'm on an AS400, so the path is a little different
    call function 'GUI_CREATE_DIRECTORY'
         exporting
    dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
         exceptions
              failed  = 1
              others  = 2.
    Regards,
    Rich Heilman

  • Creating Open Directory Replica fails with Server Admin Error Value 1127

    Hallo,
    I have seen a lot of similar threads here and they were helpful up to a certain point, but in the end, they did not solve my problem.
    Currently, it comes down to this. The Server Admin Error message ist really meaningless and I could not find a single for the error value on the whole wide web. As such, I switched to the command line versions of the tools involved to geht more meaningful results. It worked. Specifically, creating a replica of an openldap master means using slapconfig.
    When executing
    slapconfig -createreplica master.ourdomain.com diradmin
    as root on the prospective replica machine, I get the following error message:
    ssh command failed with status 127
    That command is not allowed with the root account via public key authentication.
    That makes perfect sense to me, but how is it meant to work then?
    Executing slapconfig as admin tells me that this tool is to be executed as root. On the other hand, root login via ssh is not allowed in Mac OS X by default, which seems fine to me. I even changed /etc/sshd_config on the Open Directory Master machine to "PermitRootLogin yes". However, neither reloading ssh using launchctl nor restarting the whole server made this setting operational. Trying to login from command line as root still tells me:
    root login is not permitted to this machine via public key authentication.
    While this is the current state where I need help urgently, I changed some other things before. I tell about to exclude these issues as possible reason of failure. I got this message for quite a while:
    Replica Setup failed : This machine does not have a valid computer name
    I was sure, this machine meant the target machine, the open directory master, because the domain had changed there once before I had taken over responsibility as an admin in this environment. And in fact, changeip disguised an issue there. The command proposed by changeip to fix the situation did not seem appropriate because this machine is multihomed with a public and a private IP adress. Proper name resolution is available for both interfaces including reverse lookup. I dont like this setup, but it was the only way to get mail service running smoothly. Running changeip on the machine itself using these arguments
    changeip /LDAPv3/127.0.0.1 internalIP internalIP old.ours.com current.ours.com
    reported success in updating password server, open directory, both interfaces, hostconfig (which in fact did not change) and samba. It reported an issue with kadmin which is related to Kerberos (we dont use Kerberos yet).
    Changing the hostname of the server using changeip did not solve the issue. I then found the hint to check with scutil. This showed that the Hostname was not set on the prospective replica machine. (A question aside: in how many place is the hostname stored? The traditional /etc/hostname has gone, but seems to be replaces with several other configuration files and databases. I cant see this as an advantage). Setting the hostname using scutil worked fine. However, it did not solve the problem either. At least, slapconfig now started to complain about not being able to log in as root instead of failing from the start.
    I also checked all log files on bboth machines that might have to do with openldap, as there are /var/log/slapd.log, /var/log/system.log and /Library/Log/slapconfig.log. I also checked the log of th layer on top of openldap which is /Library/Log/DirectoryService.server.log. None of them revealed anything noticeable beside a lot of of entries that I have googled in the last few hours and which all dont seem to be associated with the problem in question.
    I will take a break now, but I have to fix this until tomorrow and I hope to get the ultimate hint from you, dear reader.
    Thanks and bye, Christian Völker

    ssh command failed with status 127
    That command is not allowed with the root account via public key authentication.
    Initial OD replication takes place via 'ssh'. If you have 'sshd' configured on the OD Master to authenticate with public keys then the OD replica will not be able to communicate with the OD Master via 'ssh'. You must configure the OD Master to use 'ssh' with password authentication and root login enabled.
    Demote the replica back to standalone. Stop any services that you may have running on the primary network interface. Then stop any services that you may have running on the secondary network interface. In the 'Network' System Prefpane remove the IP number from the secondary interface then deactivate the secondary network interface.
    Assign the private IP address and hostname that you wish to use for the replica to the primary network interface. Assign the 'public' IP number to the secondary interface. Check the DNS to see that the IP address and hostname for the primary network interface resolve both forward and reverse for the hostname of the replica that you have chosen. If it does not, fix your DNS before proceeding.
    In the 'Sharing' System Prefpane, change the name of the machine to the hostname (server.domain.tld) of the replica that you have chosen. Then use 'changeip -checkhostname' to see if the IP/hostname matches. Fix it if it doesn't.
    Then configure the /etc/sshd_config file on the OD master like this:
    \# Authentication:
    PermitRootLogin yes
    PasswordAuthentication yes
    PubkeyAuthentication no
    and the /etc/ssh_config file on the OD replica like this:
    PasswordAuthentication yes
    PubkeyAuthentication no
    Then from the OD replica as the 'root' user issue:
    slapconfig -createreplica <ODMasterIPorFQDN> <diradmin user>
    Make sure that the 'diradmin' user's password contains only alpha-numeric characters -no 'option-characters' or symbols, change it first if it does. Once the process completes, reactivate the secondary interface for the 'public' IP and check the configuration of services that will be using that IP, then start your other services. Secure the 'ssh' service on both machines to disable password authentication and 'root' logins.

  • Creating a directory statically in the Application Server

    Hi,
    I need to create a directory in the application server statically (not through code), in which I later have to store and read files. Most forums talk about doing this through AL11 --> Configure.
    While this does create an entry in the directory list in AL11, I doubt if the directory was actually created in the AS. Double clicking this directory name shows an error message in the status bar (Wrong order of calls <- CALL opendir: No such file or directory). So I believe the directory is not created at all.
    How do I set up a directory which I can browse and see, and use for creating / reading files?
    My AS is on AIX OS.
    Thanks,
    Z

    Hi,
    Yes, Could we not do it from SAP screens?
    Go to Al11 and in that you can see a tab Configure.
    There you can create the Directory and say Add button
    and then Save .
    and after that Using
    Open Data set ds1 for Output.
    will create the File if it is not there .
    you can specify the path in which you can create the files.
    check this thread as well:
    Creating a directory & subdirectory on Application Server
    Sachin
    Edited by: Sachin Dhingra on Jan 22, 2009 11:02 AM

  • How do you create a directory on Apps Server

    Hi
    Is there any way to create a directory on the apps server at runtime using any of the forms built-ins or WebUtil?

    Use the HOST command, since HOST works on the App Server. WebUtil works on the client PC.

  • File not getting created in a different server

    My requirement.
    I have written a code in the BI system and now need to write an empty file (say a.done)in a directory /interfaces of PI system.
    I wrote using open data set and close data set however the file (a.done) is not getting created in the PI system even though the directory /interfaces exist.
    When I give any directory of that of BI system ,the file(a.done) is getting created i.e the file is getting created on the same server and not on the different server.
    Is there any function module or any other way for the file to get generated in the PI system.
    Please explain with an example.
    Regards,
    Vish

    Try to use  search FTP in se37 or checkout the below FM
    CALL FUNCTION 'EPS_FTP_MPUT'
      EXPORTING
        RFC_DESTINATION            =
    *   FILE_MASK                  = ' '
    *   LOCAL_DIRECTORY            = ' '
    *   REMOTE_DIRECTORY           = ' '
    *   OVERWRITE_MODE             = ' '
    *   TEXT_MODE                  = ' '
    *   TRANSMISSION_MONITOR       = 'X'
    *   RECORDS_PER_TRANSFER       = 10
    *   MONITOR_TITLE              =
    *   MONITOR_TEXT1              =
    *   MONITOR_TEXT2              =
    *   PROGRESS_TEXT              =
    * IMPORTING
    *   LOCAL_DIRECTORY            =
    *   REMOTE_DIRECTORY           =
    *   LOCAL_SYSTEM_INFO          =
    *   REMOTE_SYSTEM_INFO         =
    * TABLES
    *   FILE_LIST                  =
    * EXCEPTIONS
    *   CONNECTION_FAILED          = 1
    *   INVALID_VERSION            = 2
    *   INVALID_ARGUMENTS          = 3
    *   GET_DIR_LIST_FAILED        = 4
    *   FILE_TRANSFER_FAILED       = 5
    *   STOPPED_BY_USER            = 6
    *   OTHERS                     = 7
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.

  • How can I create a directory on my server using FTP in applescript?

    Hi
    I have created a script which successfully uploads files to my server using FTP and a curl command.
    The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
    Would this be possible?
    Thanks
    Nick

    Thanks Bernard.
    I have tried that and still get the error message:
    "curl: Can't open '--ftp-create-dirs'!
    curl: try 'curl --help' or 'curl --manual' for more information
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
    curl: (9) Server denied you to change to the given directory"
    The other relevant parts of the script are:
    set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
    set ftp_username to "*****@*****.org.uk"
    set ftp_password to "****"
    set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
    set outPath to outputFolder & fileCounter & ".jpg"
    and then...
    do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
    Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error.

  • Unable to create dataset against OLAP Cube from different server

    Hi guys,
    If I load Microsoft SQL Report Builder on the BI Server, I am able to create a dataset against the OLAP Cube I created on the BI Server, however if I try to run the Report Builder from a different server I get the following error:
    "Unable to connect to data source 'MyOLAPCube'.
    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.20.112.82:2382
    A connection cannot be made to redirector.  Ensure that 'SQL Browser' service is running."
    I have had no issues starting the SQL Browser service, however if I try to run it in console mode, I get the following error:
    'SQLBrowser: Warning: failed starting OLAP redirection services with error 1.'
    I have checked online and seen a few similar issues online however I haven't been able to resolve my issue with their resolution.
    Any help is appreciated.
    Many thanks
    Richard

    Yeah there is a firewall running on both servers, however I had opened port 2383 and was still unable to make a connection.  It is using a named instance on the server (servername/instancename) and it is configured to use port 0, so I therefore assume
    it should be using port 2383 by default?  Or as it's a named instance, is the default port 2382? Maybe it would be better to configure it to use a specific port and open the port on the firewall?
    Hi Rfla,
    As you can see on the link below
    http://technet.microsoft.com/en-us/library/ms174937(v=sql.110).aspx
    Named instances use dynamic port assignments. As the discovery service for Analysis Services, SQL Server Browser service listens on TCP port 2382 and redirects the connection request to the port currently used by Analysis Services.
    So you can open the port 2382 for Named Analysis Services Instance remote connect.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to create a directory in application server

    Hi all,
    How to create a directory in application server through Progaram??
    eg:\tmp - is already existing
    I want to create \tmp\fi 
    Within \tmp\fi - i should able to store my file,,,
    Kindly help me urgent...

    Hello San,
    Either contact Basis guys at ur end for the same or u can do it dynamically via a piece of ABAP code, i hope it wll help u.
    call function 'GUI_CREATE_DIRECTORY'
         exporting
    dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
         exceptions
              failed  = 1
              others  = 2.
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.

  • Create a directory on the server based on the username logged in the client

    hello everybody,
    All my files which are transferred from client to server are stored in a directory called "workspace".Before the user sends the files, he is authenticated.How can I create a directory on the user name who is logged in on the server???
    Say, user1 has logged in and tries to send files to server.Now, I'd like to create a sub-directory user1 under work space so that all the files which he uploads will be stored under his name.When the user1 is logged in the first time, a directory will be created on his name else all files will be stored under his directory.
    I'm using JDBC with my-sql.
    ANy ideas??
    Thanks for your time.

    Well, it wouldn't matter what DB you are using....
    You have the user name, correct?
    You have the File object refering to the main directory, correct?
    File userDir = new File(mainDir, username);
    if(!userDir.exists()) {
       if(!userDir.mkdirs()) {
           throw new IOException("Can't make directory " + userDir.getAbsolutePath());
    // use userDir to write any files...

  • Cannot create Virtual Directory in Windows Server 2008 R2 SP1 Environment

    Dear all,
    I am trying install Reporting Services 2005 on a Windows Server 2008 R2 SP1 Enterprise machine.
    So far we successfully did the following steps
     - Install SQL Server Reporting Services
     - Configure Service Account (Domain-User)
    After creating virtual Directory, we made several steps to avoid HTTP 400 Bad Request in Report Manager:
    1. Disable LSA Loopback in Registry and restart server
    2. Enhance Service Startup time to 60000ms and restart Server
    3. Set Application Pool to ASP.NET 2.0 Classic Mode
    4. Modify RSWebApplication.config and set These entries:
    <ReportServerUrl>http://servername/ReportServer</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    After all the Reporting Services Configuration Manager still shows a red sign and we cannot continue creating the database.
    How is it possible to solve this?
    We appreciate any help.
    Best regards,
    Mark
    Mark Kuschel
    Blog
    Xing

    Hi Mark,
    As per my understanding, we can refer to the following methods to troubleshooting the issue you occurred.
    Install SQL Server 2005 Service Pack 3.
    Deleting the newly-created virtual directory using IIS manager and then rebooting the server.
    In the Report Manager Virtual Directory dialog box, create a virtual directory for Report Manager, then change the Website to Reporting.
    Enable Apply default settings.
    The following link is for your reference:
    http://www.mathgv.com/sql2005docs/SQL2005ReportingServicesInstall.htm
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Error when trying to create a directory in ASM

    Hello,
    I've got Oracle RAC 11gR2. Two nodes with Windows Server 2008. Database in ASM instance.
    I'm trying to create a directory "backupp" in ASM instance, but got error.
    All Oracle Windows services are running under Local Ssystem Account.
    I've logged in Windows Server 2008 with user AdminRAC, which is membor of Administrators and ORA_DBA Windows group.
    Diskgroup: data
    C:> SET ORACLE_HOME=C:\app\11.2.0\grid
    C:\>SET ORACLE_SID=+ASM1
    C:\asmcmd
    Connected to an idle instance.
    ASMCMD> mkdir +data/backupp
    Can't open 'C:\app\11.2.0\grid/log/diag/asmcmd/user_AdminRAC/JNESRVRACA/alert/al
    ert.log' for append
    CLSU-00100: Operating System function: open failed failed with error data: 2
    CLSU-00101: Operating System error message: The system cannot find the file spec
    ified.
    CLSU-00103: error location: SlfFopen1
    ORA-15032: not all alterations performed
    ORA-15005: name "+data/backupp" is already used by an existing alias (DBD ERROR:
    OCIStmtExecute)
    Can't open 'C:\app\11.2.0\grid/log/diag/asmcmd/user_AdminRAC/JNESRVRACA/alert/al
    ert.log' for append
    CLSU-00100: Operating System function: open failed failed with error data: 2
    CLSU-00101: Operating System error message: The system cannot find the file spec
    ified.
    CLSU-00103: error location: SlfFopen1
    ASMCMD>

    user521219 wrote:
    Hello,
    I've got Oracle RAC 11gR2. Two nodes with Windows Server 2008. Database in ASM instance.
    I'm trying to create a directory "backupp" in ASM instance, but got error.
    All Oracle Windows services are running under Local Ssystem Account.
    I've logged in Windows Server 2008 with user AdminRAC, which is membor of Administrators and ORA_DBA Windows group.
    Diskgroup: data
    C:> SET ORACLE_HOME=C:\app\11.2.0\grid
    C:\>SET ORACLE_SID=+ASM1
    C:\asmcmd
    Connected to an idle instance.
    ASMCMD> mkdir +data/backupp
    Can't open 'C:\app\11.2.0\grid/log/diag/asmcmd/user_AdminRAC/JNESRVRACA/alert/al
    ert.log' for append
    CLSU-00100: Operating System function: open failed failed with error data: 2
    CLSU-00101: Operating System error message: The system cannot find the file spec
    ified.
    CLSU-00103: error location: SlfFopen1
    looks like two different problems exist
    ORA-15032: not all alterations performed
    ORA-15005: name "+data/backupp" is already used by an existing alias (DBD ERROR:
    OCIStmtExecute)directory already exists
    Can't open 'C:\app\11.2.0\grid/log/diag/asmcmd/user_AdminRAC/JNESRVRACA/alert/al
    ert.log' for appenderror can't be logged

  • Creating a directory in JSP?

    Is it possible to create a directory on the webserver using JSP?
    I basically have different users that login to the website, and at one point, they can upload certain files. I would like to put the files they upload in directories specific to each user.
    For example, user1 will have a directory in the web app called uploads/user1/ , while user2 will have a dir called uploads/user2/ , etc...
    Thanks.
    PS: I'm using jakarta commons fileupload to upload the files. I tried changing the upload target to a non-existent directory in hopes that it will just create it, but it didn't. :(

    As long as you have write permission on the server, you should be able to create directories as well as files.
    Just use the standard java.io package.
    File dir = new File("uploads/user1");
    dir.mkdirs();I don't know if you would want to store these uploads under your web app, or some other place on disk (presumably configured with a property) thats up to you.
    The ServletContext.getRealPath() method is useful for storing it relative to your web application.

Maybe you are looking for

  • Submit by Email with CC for a pdf as an attachment

    Hello, I am using the codes below for a regular submit button to submit by email and having a problem of CC address. I hard-coded the CC address but it does not seem to recognize it, it keep taking the address in the "To" to put on the CC address. Ca

  • JRE doesn't find TcpConnection.class

    Hi. I've got a problem using the email-function of the UTL_SMTP package. I copied the example from the Documentation and tried to make it work, but if i start it following Error occures: ORA-29540: Class oracle/plsql/net/TCPConnection not found ORA-0

  • Difference too large for clearing

    Hi, when I am clearing an account in f-43, a message tell me that "The difference is too large for clearing" I know that  I need to change the difference permitted for the tolerance group, but when I try to do it in IMG, in "Define Tolerance (for cus

  • How do I import photos from my iMac to my MacBook Pro ?

    Hello ! I would like to import an album created in iPhoto from my iMac to my MacBook Pro. I would like the photos to appear exactly on my book as they are organized in my album on my iMac. Any suggestion/idea/advice would be more than Welcome ! THANK

  • Audio background for menus and submenus does not start cleanly

    I have a main menu with several submenus. I am not using any menu transitions or anything fancy here for this particular experiment/issue, I just want the audio behind the menus to start cleanly. So far, it works perfectly in simulator or Apple's DVD