Tcl error (cannot read $ properly in Window 2003)

Clovertech Forums Read Only Archives Cloverleaf Tcl Library Tcl error (cannot read $ properly in Window 2003)

  • Creator
    Topic
  • #51084
    Wilson Wat
    Participant

      We are using CL 5.5 and Window 2003. when I used the TestingTools for the following tcl command, it works. The PDF file was copied to the right directory in a image server. but when I ran it through to the interface engine, it errorred out in the error database as follows:

      ‘BIOTRONIK_ORU.xlt’ failed: Tcl callout error

      erroCode: POSIX EINVAL {invalid argument}

      errorInfo:

      can’t create directory “//ccpkryptiqims/Documents$”: invalid argument

         while executing

      “file mkdir $pdfdir”

      Engine idle — 07/27/2009 16:41:17

      Can anyone help?  

      Thanks,  

      Wilson Wat

      wilsonw@ccpdocs.com

      267 479 1312

    Viewing 1 reply thread
    • Author
      Replies
      • #68732

        Here is some more info on Wilson’s issue:

        Code:

        set seq [format “%05d” $seqnum]

        #set pdfdir “//ccpkryptiqims/Documents$/test/$year/$month/$lname1/$lname2”

        set pdfdir “//ccpkryptiqims/Documents$/test/$year/$month/$lname1/$lname2”

        set pdfdir1 “//ccpkryptiqims/Documents/test/$year/$month/$lname1/$lname2”

        if {![file exists $pdfdir]} {

        file mkdir $pdfdir

        }

        Wilson wrote:

        When I ran the test file in the testing tool, it created the directory and the pdf was copied to proper place.

        -- Max Drown (Infor)

      • #68733

        I am not on Windows and rarely work with these sorts of shares, so it’s been difficult for me to re-create the scenario. I suspect that it has something to do with escaping the $ sign in the path.

        I suggested trying \$ and \\$.

        -- Max Drown (Infor)

    Viewing 1 reply thread
    • The forum ‘Tcl Library’ is closed to new topics and replies.