Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 10 of 10

Thread: WriteFile Problems

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    South Dakota
    Posts
    21

    Default WriteFile Problems

    Has anyone experienced issues using the ReadFile/WriteFile commands? When I tried the WriteFile on two different ServiceCenter servers, it hung the server until I restarted. I was using the example out of the ServiceCenter Javascript guide on pages 25 - 26 to see how it worked.

    Any suggestions?

    Kim

  2. #2
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default

    No I have not had any problems with that. Not that I have done it a lot. I have only used a script written by HP to generate javascript documentation and it worked fine.

    Have you checked that the path you are using is valid ?
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  3. #3
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    714

    Default

    Quote Originally Posted by tommy View Post
    I have only used a script written by HP to generate javascript documentation and it worked fine.
    Care to elaborate on this? Sounds interesting...

  4. #4
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default

    Quote Originally Posted by glg View Post
    Care to elaborate on this? Sounds interesting...
    I can't remember the exact name of the script. Seomthing with jsdocwriter.

    What it does is scan the javascript library and writes some textfiles on the server. These textfiles can then be parsed by a perl script that generates html documentation. The script itself if documented so you should be able to get it to work by reading that. I found it by accident when 6.2 was new and I was checking it out.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  5. #5
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    714

    Default

    Quote Originally Posted by tommy View Post
    I can't remember the exact name of the script. Seomthing with jsdocwriter.

    What it does is scan the javascript library and writes some textfiles on the server. These textfiles can then be parsed by a perl script that generates html documentation. The script itself if documented so you should be able to get it to work by reading that. I found it by accident when 6.2 was new and I was checking it out.
    It's an OOB ScriptLibrary? Hmm, might not be in 6.1 then.

  6. #6
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default

    Yes it is OOB and it is in 6.2 not in 6.1. I copied it back to 6.1 and it works just fine there too.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  7. #7
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,271

    Default

    A little more information now that I have a chance to check in SC.

    The scriplibrary is called: JSDocWriter

    You need JSDoc to compile the html documents. Can be found here: http://jsdoc.sourceforge.net/ and you need Pearl to run JSDoc.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  8. #8
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    714

    Default

    I don't have a 6.2 instance handy, could you possibly post an unload of the ScriptLibrary?

    Apologies for the threadjack, OP. Sorry, I haven't used them either.

  9. #9
    Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default

    Hi,
    I am using 6.1 version running on HP system. and I have the same problem with writeFile function.
    Could you help me how to import this library and / or unl file.

    Thank you.

  10. #10
    Junior Member
    Join Date
    Dec 2007
    Location
    Johannesburg
    Posts
    4

    Default

    Have you tried looking in the path you specified on the Server not on your client.
    I ran into this today. JS runs server side which makes I suppose, but it kills me that it still locks up your client when you mess up a your code a bit.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

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