SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 1999
    Location
    St. Lurent, Quebec, Canada
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running FileOpen on a remote machine

    Hello,

    I have tried running FileOpen, FileWriteLine, and FileClose on a client machine unfortunately even commands like "hTarget->FileOpen()" seems to run locally (where hTarget is the HMACHINE of the client machine)..

    Does anyone know how to overcome this limitation?
    Gili Tzabari

  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running FileOpen on a remote machine

    You cannot.

    This has been a 4Test "feature" since they added remote testing.

    In short: it's a security violation. You are not supposed to open files and write files on remote systems.

    There are some workarounds, you cn read about some of them on Mr. Cluey's page.
    One of which is to map the remote system's drive to the local machine and perform the FileOpen () on the mapped drive.

    Hope that helps.

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  3. #3
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running FileOpen on a remote machine

    Also try downloading and working with Christophe Lefevre's Remote File Manipulation functions from our download section.

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  4. #4
    Guest

    Re: Running FileOpen on a remote machine

    You could also copy your files to your Host machine, act upon them locally with FileOpen, FileWrite_, FileClose, and then copy the files back to the target machine(s).

    Tony Mrozinski
    Intel

  5. #5
    Junior Member
    Join Date
    Jul 1999
    Location
    Austin, TX
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running FileOpen on a remote machine

    why don't you transfer execution to the remote machine, then you can open the file as if it was local (since the script effectively executes on the remote machine)?

    goes like this:

    to distribute function execution, do something like this:
    HMACHINE hTarget = Connect ( MachineName );
    hTarget -> @ ( FunctionName ) ();

    where inside function you open and muck around with your file
    void Function ()
    {
    HFILE hF = FileOpen ("MyFile.dat", FM, );
    }

    : - )
    Stephan

  6. #6
    Junior Member
    Join Date
    Jul 1999
    Location
    St. Lurent, Quebec, Canada
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running FileOpen on a remote machine

    I did something similar to what you said.. I used "hMachine -> FileOpen('somename')".. Unfortunately it runs locally anyway. Try giving it a try on your end and lets me know if it works.
    Gili Tzabari

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:31 PM.

Copyright BetaSoft Inc.