CIS 6.1 TCL 8.5 problem with open

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CIS 6.1 TCL 8.5 problem with open

  • Creator
    Topic
  • #54715
    Paul Bishop
    Participant

      We are in the process of upgrading our windows version of CIS from 5.8 to 6.1.1 and have a problem with a TCL script that opens for write a file on a different server.  under 5.8, the command is:

      set ofileid [open \servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF w]

      and it works fine under 5.8.  When I try to run it under 6.1.1, I get:

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–] result = ‘couldn’t open “\servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF”: invalid argument’

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–] errorInfo: ‘

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–] couldn’t open “\servernameobdg_prd$AMBULATORYMedflowDIPtest.PDF”: invalid argument

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–]     while executing

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–] “open $path_file w”

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–]     (procedure “tpsConvertMedflowPDF_prod” line 78 )

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–]     invoked from within

      [xlt :xlat:ERR /0:medflow_prod_xlate:–/–/—- –:–:–] “tpsConvertMedflowPDF_prod {MSGID message0} {CONTEXT xlt_raw} {ARGS {}} {MODE run} {VERSION 3.0}”‘

      [xlt :rout:ERR /0:medflow_prod_xlate:06/05/2015 11:20:06] Xlate error in route detail ‘RAW’ under Trxid ‘_HCI_static_route_’ to Dest ‘f_mdflwp_pdf_t’

      Any ideas on what changed so that I can’t explicitly set the server/path?

      Thanks,

      Paul Bishop
      Carle Foundation Hospital
      Urbana, IL

    Viewing 2 reply threads
    • Author
      Replies
      • #82683
        Paul Bishop
        Participant

          note to self:  make sure that the services is started up with the right user/password…. 😳

          This is why I don’t like working on window servers.

          Paul Bishop
          Carle Foundation Hospital
          Urbana, IL

        • #82684
          Charlie Bursell
          Participant

            Paul:

            Glad you found the problem.  But I am confused.  Are you sure that is the string in your open statement?  If I ask Tcl to evaluate that string I get:

                        servernameobdg_prd$AMBULATORYMedflowDIP        est.PDF

            I am not sure that is what you want.  However you say it works.  I just wonder how.  Am I missing something here?

          • #82685
            Paul Bishop
            Participant

              I have a set for the path and file name prior to the open:

              set path “\\server_name\obdg_prd$\AMBULATORY\MedflowDIP\”

              set file_name “$doc_uid.PDF”

              set path_file “$path$file_name”

              set ofileid [open $path_file w]

              All the special characters are escaped in the set.

              Paul Bishop
              Carle Foundation Hospital
              Urbana, IL

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.