Debug flex app loaded from remote server

Hi,
I'm developing a flex app which gets loaded from a remote
server and it connects using amf to that server and gets some data.
Now, I can't test from within the flex builder ide, as the URL will
be empty. When I test using IE/Firefox pointing to the remote
server URL where this debug.html is mounted, the swf asks for a
host ip/name where a flash/flex debugger runs. When I give
localhost/127.0.0.1, it fails and displays the dialog box again. Is
there a way to connect the swf from remote server to connect to a
debug console inside the FB2 ide?

Well, I ran all commands shipped with FB2and found out that
fdb does connect and allows to "continue". Still the in IDE
developing experience and quick turn around isn't there. Is there a
way to get the URL from which the swf was loaded from within the
swf, so that if its a remote server, I can get data from it, else
its in debug state, so I can get data from some hard coded
host.

Similar Messages

  • Can't call a VI from remote server

    I have a VI running on a labview development machine(Labview 2010), the main function is handling excel report using report generator. I follow the link http://www.ni.com/white-paper/14469/en to set up labview machine and teststand machine respectly. But when I tried to call the VI from remote server, it is still not able to load the VI front panel and show the connectors. See the  attachment. It looks like it still trying to load VI from local drive because it can't find the builded-in subvis for report generator function.
    What should I do to make it work? Thanks!
    Solved!
    Go to Solution.
    Attachments:
    TestStand error.png ‏107 KB

    For those interested in the solution, the problem turned out to be two things.
    The first is if you want to be able to load a prototype of the VI in TestStand, you will need to either share the VI or create a dummy VI. If the shared VI uses subVIs you do not have access to, then you are better of creating a dummy VI that has matching connector panes.
    The second problem had to do with how the remote VI path was specified. If you have shared the VI, then you will enter in the shared folder path as your remote VI path. If you have not shared it, then you will need to enter in the VI path as it is on the remote machine.
    Rohama K.

  • HOw to delete files from remote server?

    Hi,
    I want to delete files from a directory on remote server.
    I use the following command to delete on current server:
    find $srcdir -mtime +90 -name "COR*.txt" -exec rm -f {} \;
    Now, how can I delete files from remote server ?
    Thanks!
    Yogini

    Some possible options:
    1. There exists SSH implementation for Windows.
    2. You can make a workaround. You can setup share for specific/wanted directory.
    Then you can mount it on Linux machine and execute command localy and delete files "localy" in mounted directory.
    3. You can setup FTP server on Windows machine and do that remotely via FTP commands.

  • Drag and drop from remoter server

    Drag and drop from remoter server I get this<img src="../My Documents/SITKA/Unnamed Site 6/4coldfront_jacketAD.jpg" width="207" height="207" longdesc="http://www.jonsered.ws" /> what I want is this <img src="http://www.jonsered.ws/coldfront_jacketAD.jpg" width="207" height="207" longdesc= />
    the first one does not work on the web
    How is this done?

    When you click on a file (drag & drop) in Remote Server panel, DW GETS the file and places it in your Local Site folder.
    Your local site is defined in DW as ./My Documents/SITKA/Unnamed Site 6/.  Hence the path name change.
    Make sense?
    Nancy O.

  • Process for Flat file delta load from Application server to transactional??

    I want to do a flat file extraction in delta loads from application server and that should be loaded into a transactional cubes scheduling a process chain.
    Can any one help with ABAP code and step by step process for this?
    Thank you
    Devi

    Hi Devi,
    As per your explaination, you want to load a list of files from application server using process chain.
    You can do this with below steps.
    1) Create a Event and call event to run Process chain multiple times.
    2) Put all filenames in a file say, source-File
    3) Write a rooting to read filename from Source-File and trigger InfoPackage
    4) At the end of the process chain create new customized program which will delete first line from Source-File so that it will take next file in next run as well as delete currently loaded file. Once this is done trigger event again to start process chain again.
    Regards,
    Ganesh

  • Can the source files be loaded from target server

    Hi,
    I have owb client on windows2000 and target on linux server. The current plan is to create runtime repository connection for the target and execute mapping from windows where the source files are located.
    Is there way to put the source files on target server machine (there is no owb client install)? What's the best business practice regarding how the owb and source files are distributed? Thanks.
    Tarcy

    The problem is not the code or html.
    This: "The Java Runtime Environment cannot be loaded from <\bin\server\jvm.dll>
    indicates that you are attempting to run the server jvm, and it does not exist. This can be because either the java command option "-server" was used, or a configuration file setting.
    As shipped by Sun, the JRE does not include the server jvm; the JDK does. If you want the server jvm in the JRE, copy the \server\ directory and contents from the JDK to the JRE.
    If you installed using defaults,
    copy from: C:\Program Files\Java\jdk1.5.0\jre\bin
    copy to: C:\Program Files\Java\jre1.5.0\bin

  • Flex App talking to remote LCDS (or blaze or granite) server?

    I've got a Flex app that's running just fine sitting on a Tomcat server, talking to GraniteDS (open source LCDS alternative) that feeds it JMS messages.
    However we're going to need to install the Flex SWF app onto another server entirely (maybe JBoss, who knows) because the SWF actually is just part of the overall web application functionality.
    So is it possible to have the compiled SWF sitting somewhere else other than the LCDS/Granite server?  As I said, when the SWF and the DS server are one and the same, it works fine.  But when I separate the two the SWF app can no longer connect to the DS server (addEventListener returns a Fault).
    There must be some configuration file that the SWF can read at run-time to know what DS server URL to use.  Any ideas?

    One more tidbit.  I modified my services-config.xml and replaced the channel dynamic definition URL that was there (http://{server.name}:{server.port}/{context.root}/gravity/amf) with a hard-coded one http://localhost:8080/gravity/gravity/amf/
    Then I modified my Flex app to no longer try to set the Channel at run time, just to use what's in services-config.xml.  Guess what, it connects just fine.  So the url http://localhost:8080/gravity/gravity/amf/ is absolutely correct - the problem MUST be in the Flex code.  The handler for "MessageFaultEvent.FAULT" keeps firing with the fault from my previous post.
    What about this Flex code is wrong?
    myChannelSet = new ChannelSet();
    myChannel = new AMFChannel("my-gravityamf", "http://localhost:8080/gravity/gravity/amf/");
    myChannelSet.addChannel( myChannel );
    // Define Producer
    producer = new org.granite.gravity.Producer();
    producer.addEventListener(MessageFaultEvent.FAULT, faultHandler);
    producer.addEventListener(MessageEvent.RESULT, faultHandler);
    producer.destination = "messages-destination";
    producer.channelSet = myChannelSet;
    // Define Consumer
    consumer = new org.granite.gravity.Consumer();
    consumer.addEventListener(MessageAckEvent.ACKNOWLEDGE, acknowledgeHandler);
    consumer.addEventListener(MessageEvent.MESSAGE, messageHandler);
    consumer.destination = "events-destination";
    consumer.subscribe();
    producer.send("LOGIN");

  • Building Flex application with Flex Builder in a Remote Server - Cloud Computing

    Hey Guys
    I have a query or its confusion probably
    I was just thinking if this kind of solution is existing or possible with say cloud computing or anything else?
    This is what we all probably do for building our flex application?
    1. There is Remote Server hosting our source code
    2. Developer check out the code in their system locally by some Configuration tool like Perforce, CVS etc
    3. Developer Install Flex  Builder IDE locally and open the IDE and then create.build locally and then on testing check in the code in repository
    All this is fine but we have some problem here
    a. We have to get all the source code checked out/downloaded in some local machine
    b. We have to install Flex Builder in each every developer machine with license.
    A possible modification in the above can be as follows
    1. Don't download/check out the source code locally in each machine
    2. Create a mapped network drive of the Remote Repository and then work directly with the mapped network drive
    3. Install Flex Builder  locally
    4. Start Flex Builder create a Flex Project with source code in the mapped network drive
    But this has some potential problem as now the building of the flex application directly work with the mapped network drive. This is very slow especially when we Keep the "Build Automatically" Check box to true
    My question is that can we have a solution like this ?
    1. There is Remote Server hosting our source code
    2. There is another 2nd Remote Server which support workspace for each user
    3. Flex Builder installed in the 2nd Remote Server
    4. Each Developer connects to the 2nd Remote Server log in to their workspace
    5. Each developer check out code by connecting to 1st Remote Server. This code which is checked out now goes in their workspace in the 2nd Remote Server
    6. Start Flex Builder instance which is running in the 2nd Remote Server
    5. Each developer open source code modifies, build application in their workspace and check
    I think this is something that I heard cloud computing can do ? Do anyone have any idea whether this kind of environment is possible in Flex or can anyone suggest something which is almost close to this ?
    Regards
    Biswamit

    Hi
    The concept of cloud computing is not even very clear to me
    I think this is what I understood about it ...........from this link http://communication.howstuffworks.com/cloud-computing.htm
    It says
    "Instead of installing a suite of software for each computer, you'd only have to load one application. That application would allow workers to log into a Web-based service which hosts all the programs the user would need for his or her job. Remote machines owned by another company would run everything from e-mail to word processing to complex data analysis programs. It's called cloud computing, and it could change the entire computer industry"
    "There's a good chance you've already used some form of cloud computing. If you have an e-mail account with a Web-based e-mail service like Hotmail, Yahoo! Mail or Gmail, then you've had some experience with cloud computing. Instead of running an e-mail program on your computer, you log in to a Web e-mail account remotely"
    My issue is not with the license. The solution that I am looking for is
    1. Don't want the developer to download the source code in any fashion either checked out or anything else in the local machine
    2. Want the developer to work directly on the server
    3. Looking for a solution where each developer is not required to install Flex Builder locally and the developer can use Flex Builder that is installed on the server and in his workspace and create/modify build on the server itself
    Hope I could make you understand this time ................
    Regards
    Biswamit

  • Error in data load from application server

    Well, this problem again!
    In datasource for dataload by flatfile, tab Extraction i selected Load Text-Type File From Application Server.
    In tab Proposal:
    Converter: Separated with Separator (for Example, CSV).
    No. of Data Records: 9198
    Data load sucefull.
    I add 1 record:
    Converter: Separated with Separator (for Example, CSV).
    No. of Data Records: 9199
    So appear a  message error "Cannot convert character sets for one or more characters".
    I look in line 9199 in file and not have any special character. I use AL11 and debug to see this line.
    When i load file from local workstation, this error not occur.
    What's happen?

    Hi Rodrigo,
    What type of logical file path have yopu created in the application server for loading this file.
    Is it a UNIX file path or an ASCII file path.
    Did you check how the file looks in the application server AL11?
    Prathish

  • Automating a flex app on a headless server

    I have a flex chart drawing application that needs to be automated. When automated it will read in data from the DB, draw the charts, and save them as .png files. This works flawlessly on my localhost version of oc4j on my Mac. However it has never worked on our Solaris oc4j deployment which is a headless server. I've set flex to run as headless in the config files but no dice. How can I get this working? Here are some of the error messages I'm getting:
    LINUX/UNIX browser attempting to launch /opt/sfw/bin/firefox http://flexdomain.yadayadyada
    08/11/06 14:41:53
    user dir: /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/j2ee/home
    08/11/06 14:41:54 ERR>The application 'firefox-bin' lost its connection to the display flexdomain. yadayadyada:1.0;
    08/11/06 14:41:54 ERR>most likely the X server was shut down or you killed/destroyed
    08/11/06 14:41:54 ERR>the application.
    08/11/06 14:41:54 ExitValue: 1
    And here's a snippet from the Java which launches the flex app in the firefox browser:
    String cmd = "/opt/sfw/bin/ff.sh "+ url; // ff.sh is a script which sets DISPLAY and launches firefox with the flex url
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec(cmd);
    I'm using 10g, by the way.
    Thanks!
    Edited by: Solerous on Nov 7, 2008 7:04 AM

    Ok, I'm convinced that this is some sort of configuration problem. I can get the browser to launch when written as a simple java program compiled at the command line:
    import java.util.*;
    import java.io.*;
    public class Launcher {
    public static void main(String args[]) throws IOException {
    String url = "http://www.ebay.com";
    String[] commands = {"/bin/sh", "-c", "/opt/sfw/bin/firefox ", url, "-width", "1600", "-height", "1200", ":5"};
    ProcessBuilder pb = new ProcessBuilder(commands);
    Map<String, String> env = pb.environment();
    env.put( "DISPLAY", ":5" );
    Iterator it = env.entrySet().iterator();
    while (it.hasNext()) {
    Map.Entry pairs = (Map.Entry)it.next();
    System.out.println("\t>> environ: "+pairs.getKey() + " = " + pairs.getValue());
    Process process = pb.start();
    The output is just to show the environment variables and it looks like this:
         >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
    >> environ: LANG = C
    >> environ: DISPLAY = :5
    >> environ: ORACLE_BASE = /oracle
    >> environ: ORACLE_TERM = vt100
    >> environ: PWD = /usr/local/u00/de8
    >> environ: _ = /usr/bin/java
    >> environ: MAGICK_HOME = /usr/ImageMagicK/ImageMagick-6.4.4
    >> environ: ORACLE_SID = cots
    >> environ: USER = de8
    >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
    >> environ: EDITOR = /bin/vi
    >> environ: MOZILLA_SOLARIS_PATCHCHECKER = disable_patchchecker
    >> environ: HOME = /u00/de8
    >> environ: SSH_CONNECTION = 128.219.196.118 64994 160.91.230.33 22
    >> environ: LD_LIBRARY_PATH = /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc:/opt/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ImageMagicK/ImageMagick-6.4.4/lib::/oracle/product/9.2.0/lib
    >> environ: LOGNAME = de8
    >> environ: SHELL = /bin/ksh
    >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    >> environ: SSH_TTY = /dev/pts/1
    >> environ: MAILMSG = [YOU HAVE NEW MAIL]
    >> environ: MANPATH = /usr/opt/SUNWmd/man:/usr/man:/usr/local/man:/usr/share/man:
    >> environ: NNTPSERVER = time.ornl.gov
    >> environ: SSH_CLIENT = 128.219.196.118 64994 22
    >> environ: MAIL = /var/mail/de8
    >> environ: TZ = US/Eastern
    >> environ: PS1 = ${PWD###/} $
    >> environ: TERM = vt100
    >> environ: PATH = /oracle/product/10.1.3.2.0/OracleAS_1:/oracle/product/10.1.3.2.0/OracleAS_1/OPatch:/usr/xpg4/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/u00/de8/bin:/opt/NSCPcom:/sbin:/usr/local/etc:/usr/lib:/usr/opt/SUNWmd/sbin:/usr/bin:/usr/local/bin/perl5.00502:/usr/openwin/bin:/opt/sfw/bin:/usr/ImageMagicK/ImageMagick-6.4.4/bin:.:/oracle/product/9.2.0/bin
    I decided to output the env vars in hopes that it would show what needs to be reset. But if I use the exact same code in my deployment, it fails and I get the following env settings:
    08/12/09 14:14:27 >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
    08/12/09 14:14:27 >> environ: LANG = C
    08/12/09 14:14:27 >> environ: DISPLAY = :5
    08/12/09 14:14:27 >> environ: ORACLE_CONFIG_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    08/12/09 14:14:27 >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
    08/12/09 14:14:27 >> environ: TMP = /tmp
    08/12/09 14:14:27 >> environ: TZ = US/Eastern
    08/12/09 14:14:27 >> environ: NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
    08/12/09 14:14:27 >> environ: ORA_NLS33 = /oracle/product/10.1.3.2.0/OracleAS_1/ocommon/nls/admin/data
    08/12/09 14:14:27 >> environ: LD_LIBRARY_PATH = /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc/server:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/../lib/sparc:/oracle/product/10.1.3.2.0/OracleAS_1/opmn/lib:/oracle/product/10.1.3.2.0/OracleAS_1/lib32
    08/12/09 14:14:27 >> environ: X_LD_LIBRARY_PATH_64 = /oracle/product/10.1.3.2.0/OracleAS_1/lib
    08/12/09 14:14:27 >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    08/12/09 14:14:27 >> environ: SHELL = /bin/bash
    Does anyone know how I can get the deployed version (running in the server container) to work exactly in the same way as the version run from a simple command line?

  • Firefox will not play .ogv video files when loaded from a server. Does anyone have any answers that will fix this?

    I've read the suggestions for fixing this, and none of them work. I've updated my .htaccess to match MIME types for .ogv, I've uploaded the files as both Binary and ASCII, neither method works. The .ogv file plays fine when you load it from a local file, but it will not play when viewed from a remote server. I've confirmed with my hosting company that the .htaccess and all other issues for HTML5 are up-to-date. Safari and Chrome play the HTML5 videos just fine, but Firefox will not. Does anyone have any concrete answers as to what the problem is. I'm also serving up the video files as .webm and .mp4, but neither of these formats works in Firefox either.

    That can happen if the server isn't configured properly to send the files with a by Firefox supported MIME type.
    *https://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types
    Did you check via the Web Console which headers Firefox receives when requesting the .ogv file?
    If that is OK then it is possible that the file is using an unsupported coding method.
    * https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements

  • VPN Working however some Apps Not from Remote

    I posted here and got such a good response to my last issue - I hope I am not being a pest.
    ** Main Location no issues out to internet
    crypto ipsec transform-set myset esp-3des esp-sha-hmac
    crypto map bhsn 10 ipsec-isakmp
    description VPN to PARC
    set peer X.X.X.X
    set transform-set myset
    match address 100
    crypto map bhsn 20 ipsec-isakmp
    description VPN to Corneilia
    set peer X.X.X.X
    set transform-set myset
    match address 102
    crypto map bhsn 30 ipsec-isakmp
    description VPN to OAK
    set peer X.X.X.X
    set transform-set myset
    match address 103
    crypto map bhsn 40 ipsec-isakmp
    description VPN to Wells
    set peer X.X.X.X
    set transform-set myset
    match address 104
    interface FastEthernet0
    description inside interface
    interface FastEthernet4
    description 5Mb WAN to Primelink
    ip address X.X.X.X 255.255.255.128 secondary
    ip address X.X.X.X 255.255.255.128
    no ip unreachables
    ip nat outside
    ip virtual-reassembly
    ip route-cache flow
    duplex auto
    speed auto
    crypto map bhsn
    interface Vlan1
    description Default Gateway fa0-fa3
    ip address 2X.X.X.X 255.255.255.248 secondary
    ip address 192.168.0.11 255.255.255.0
    no ip unreachables
    ip nat inside
    ip virtual-reassembly
    ip route-cache flow
    ip tcp adjust-mss 1100
    ip classless
    ip route 0.0.0.0 0.0.0.0 X.X.X.X
    ip http server
    ip http authentication local
    ip http secure-server
    ip http timeout-policy idle 60 life 86400 requests 10000
    ip nat inside source route-map nonat interface FastEthernet4 overload
    logging trap debugging
    access-list 100 permit ip any 192.168.1.0 0.0.0.255
    access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.1.0 0.0.0.255
    access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.6.0 0.0.0.255
    access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.7.0 0.0.0.255
    access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.5.0 0.0.0.255
    access-list 101 permit ip 192.168.0.0 0.0.0.255 any
    access-list 102 permit ip any 192.168.6.0 0.0.0.255
    access-list 103 permit ip any 192.168.7.0 0.0.0.255
    access-list 104 permit ip any 192.168.5.0 0.0.0.255
    access-list 105 permit tcp any any eq 9903
    access-list 105 permit tcp any any eq 9902
    access-list 105 permit tcp any any eq 9901
    access-list 105 permit udp any any eq 9901
    access-list 105 permit udp any any eq 9902
    access-list 105 permit udp any any eq 9903
    no cdp run
    route-map nonat permit 10
    match ip address 101
    The Remote Routers however can't seem to get trace route, and the accounting program isn't working, POP3 Mail, and Updates. Here is the config for one of the Remotes.
    interface FastEthernet4
    description WAN connection to PrimeLink$FW_OUTSIDE$
    ip address X.X.X.X 255.255.255.224
    ip virtual-reassembly
    duplex auto
    speed auto
    crypto map bhsn
    interface Vlan1
    description Default Gateway fa0-fa3$FW_INSIDE$
    ip address 192.168.1.2 255.255.255.0
    ip directed-broadcast
    ip virtual-reassembly
    ip tcp adjust-mss 1452
    ip classless
    ip route 0.0.0.0 0.0.0.0 X.X.X.
    ip http server
    ip http authentication local
    ip http secure-server
    ip http timeout-policy idle 60 life 86400 requests 10000
    access-list 100 permit ip 192.168.1.0 0.0.0.255 any
    access-list 101 permit tcp any any eq 9901
    access-list 101 permit tcp any any eq 9902
    access-list 101 permit tcp any any eq 9903
    access-list 101 permit udp any any eq 9901
    access-list 101 permit udp any any eq 9902
    access-list 101 permit udp any any eq 9903
    no cdp run

    Here is more information:
    Have 4 remote locations and 1 main.
    **Currently Remotes can't access each other not even ping. IE from remote 1: 192.168.1.X can't ping remote 192.168.3.X.
    All Remotes can access Main location. All internet traffic has to go through main router. 192.168.0.11
    ** POP MAIL can't be accessed from Remotes.
    ** Account Software can't be used at remotes. The accounting software is installed on local machines but access information from request2.paydata.com and request.paydata.com remotes can't trace to this fails at main router.

  • How to execute an SSIS package on a scheduled basis from remote server and pass in input files

    I have an application server and a db server.  My db server has all things SQL Server stored on it (DBMS, SSRS, SSIS, etc.)  I have several nightly batch process SSIS packages (dtsx files currently) that will pickup an input file and import them
    into the database.  I would like to execute all batch processes from my application server as I have quite a few other ones as well that do other stuff outside of SQL Server via powershell.  My question is how to do this?  Is there away to execute
    them remotely via DTexec.exe, should I set them up as Agent jobs and somehow pass in the file names\location (how?), create and SSIS catalog, etc.?  
    I need to easily be able to see if the packages execute successfully or not and if not capture the detailed information of why they failed from the remote server so I can use that to drive my process flow logic in the batch processes.

    Hi Jason,
    According to your description, you want to execute a package on a schedule and receive notification when package ends with error in the job.
    After testing the issue in my environment, we can directly add the package in a step of a job, then add a schedule and set the Alert and Notification property in the job to achieve your requirement. For more details, please see:
    Create a Database Mail in the SSMS.
    Right-click the SQL Server Agent services to Enable mail profile, then select the appropriate Mail profile.
    Under the Operators folder, create an operator with the correct E-mail name.
    Right-click the Jobs folder to add a new job.
    In the Steps pane, New a step with SQL Server Integration Services Package Type to run the package.
    In the Schedules pane, New a schedule for the job.
    In the Alerts pane, New an alert with SQL Server event alert, then enable Notify operators option with an operator in the Response pane.
    In the Notifications pane, enable Email option with same operator and When the job fails selection.
    Then when the package fails, the job would be failed and we can receive the error message in the mailbox.
    Besides, please make sure the account that execute the job has correct permissions for the file, for the folder that contains the file, and for the database.
    References:
    Configure Database Mail – Send Email From SQL Database
    How to setup SQL Server alerts and email operator notifications
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Help! Downloading a file from remote Server

    I am currently doing a program for downloading a specified file from the remote server i.e from any website. If the downloading process stops in between due to some problem in the internet connection, then my program needs to start the downloading the file again to the local directory from where it was left.
    My idea is that, getting the size of the remote file initially when the downloading process starts and if the connection is interrupted, i will check the size of the downloaded file in the local directory with the remote file size. If the remote file size is greater than the localfile size, i need to start downloading the file where it was left i.e start downloading the next bit from the remote file.
    Is there any way to get the contents of the remote file from the specified point say 50th byte from a total file size of 100 kb using java?
    which concept to use FtpClient or sockets?
    iam a little bit confused!!!!
    Please help me.
    Thanks in advance.

    For HTTP you can use this function to open the stream with offset:
    InputStream openStream(URL url, long offset) {
        try {
            URLConnection uc = url.openConnection();
            uc.setRequestProperty("Authorization", "Basic " + (new BASE64Encoder()).encode("username:password".getBytes()));
            if (offset != 0 && url.openConnection().getHeaderField(0).toUpperCase().startsWith("HTTP/1.1"))
                uc.setRequestProperty("Range", "bytes=" + offset + "-");
            return new BufferedInputStream(uc.getInputStream());              
        } catch (MalformedURLException mfURLe) {
            System.err.println("Malformed URL in Client Updater. Unable to receive update list: " + mfURLe.getMessage());
        } catch (IOException ioe) {
            System.err.println("Unable to open input stream: " + ioe.getMessage());
        return null;
    }

  • Using scp to copy files from remote server to mac from a newbie

    Hi am a new poster to this forum and getting (re)acquainted with the unix world using terminal on the Mac. I am part of webteam for a large website run by a nonprofit where I have administrative access. I hope that this forum is the correct venue for my question.
    The other day I used terminal tsch to logg onto a remote server where I have admin privaleges. One of the other admins and I were in the process of experimenting with using either rsync or scp to "backup" the server. We are experimenting with different backup strategies over and above those supplied by our web host. After finding out how to open port 22 on my modem and setting services in sharing to allow for remote log on, I logged on to the remote server and ran this command (suggested by another admin):
    scp -r -p -v /remotefolder [email protected]:/Users/drktyler/Documents/serverBU/
    Unfortunately I had severely underestimated the amount of time it would take to perform scp and needed to terminate the scp job. For example, I only got 100 MB onto my Mac in one hour (normally takes about 6 mintues to download a 100 MB file from the internet) I tried to kill the job by doing:
    ctrl -z
    ls ps
    kill (scp pid #)
    This did not work. And I forgot about trying ctrl-c <blush>
    I was able to exit my session on the remote server which "exited" the scp job.
    Oh, before running scp, I did try rsync and it did not work. Unfortunately, I had not set my terminal session to an unlimited buffer size, so the early part of my session rolled off the terminal screen. This means I have no idea what the error was.
    This morning the other admin was performing some backups on the remote server and noticed that there was a an unexplained directory on the remote server named:
    mymacuserid
    It had what he called some rpms. I am not exactly sure what a rpms cache files are, but I think that rpms has some relatationship to the RPM package manager used by many linux systems. I could not account for how the mymacuserid directory got on the remote server because I did not put it there and my log in id to the remote server bears no resemblance to my Mac user id.
    We don't believe that this directory did any harm to the remote server, but I sure as heck would like to know how it got there.
    My question is if there was something about my scp command that
    (1) created this "temporary" mymacuserid directory on the remote server
    (2) did the way I ended the scp job by exiting the terminal mean that this temporary directory was not "cleaned up."?
    (3) what other options might have been available to me to kill the job and clean up after the job? ctrl-c while logged onto the remote server? opening up a second terminal window and killing the ssh job?
    (4) is scp normally that slow?
    My Mac: Mac Mini, 1.66 GHz Intel Core Duo, Memory: 1.5 GB 667 MHz DDR2 SDRAM, Mac OS 10.4.8
    Remote server: CPU AuthenticAMD, AMD Athlon(TM) XP 2600+
    Version psa v8.1.1_build81070716.12 os_CentOS 4.2
    OS Linux 2.6.9-55.0.2.EL {CentOS is built from Red Hat Enterprise Linux}
    Respectfully yours,
    treehugger from nj

    J.V. Thanks so much for your very helpful response!
    The other admin who was trying scp over the weekend also reported that the job ran very slowly, so I suspect the slow response time may be on the remote server end. I do appreciate knowing that you have gotten 80% of your advertised DSL speed with scp.
    Thank-you for being so polite and gentle in your response. No I did not know that if the remote patname has white space in it, that I need to quote the whole path and escape any white space with preceding backslashes as you showed in your rsync example.
    Finally, as for the rogue elements being left on the server, I figured out that these rogue elements were left on the server the day before I did the aborted scp job because I had to quit the terminal in the middle of an active rsync job while logged onto the remote terminal. When I went onto the server this morning, I checked the timestamps on the rogue files and the timestamps match up.
    The other admin has finally succeeded in doing a full server back-up (in addition to the back-up using the back-up utility provided by our web host). So, for the moment we are in pretty good shape. Of course, I'm not sure that I could replicate what he did. <shrug>
    Thanks again. I'm glad I posted on this forum as I have always learned a lot by reading the apple forums I suspect that I will be posting again.
    T.H.
    P.S. Please forgive me for not including copies of your original message in my reply. There is probably a setting that I need to change.

Maybe you are looking for

  • Free goods by Plant

    I am trying to determine the free goods by Sales org/div/plant/material. The system is not determining this key combination. because it alway show that no information for Plant. But I can get information for sales org, division and material.  I have

  • Cannot sqlplus sys as sysdba from remote server :ORA-12154

    Hi, I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file. [ORACLE@SERVER admin]$ sqlplus sys a

  • Imported .gif has black background

    Hello All, I imported a .gif with a transparent background but when I try to use the logo in cs4 premiere Pro it has a black background. I can't figure out how to take out the black background. Any help would be appreciated. Thank you -rico

  • Error Log DB

    Dear Friends. Please,  helpme . . . .! I installed ECC 5.0 / DB2 UDB 8.2 Fixpack 15 / OS AIX 5.3 64BIT. I activated week pass service of HADR. I analyse logs database ( db2dump.log), I have following error. 2008-02-26-17.07.30.050399-300 I8346106A329

  • I pad not starting and showing linings..

    My i pad is not starting and showing linings of different colours when sleep/ wake button is pressed, then screen goes off . Again pressing sleep button is showing linings again. Holding home button with sleep button is also not solving the problem.