Environment Variables to run hcismat

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Environment Variables to run hcismat

  • Creator
    Topic
  • #48080
    Misti Wannamaker
    Participant

    I am trying to run smat from the command line in 3.5.2 (hcismat &).  I am using Reflections.  I am getting the following error:

    (intmgr)hcitest>hcismat &

    [1]     14924

    (intmgr)hcitest>Error: Error: no display name and no $DISPLAY environment variae

       while

    initializing application (Tcl_AppInit?)

       while executing

    “exec hciwish $scriptname”

       (“eval” body line 1)

       invoked from within

    “eval exec hciwish {$scriptname} $argv”

       (procedure “SMAT:main” line 81)

       invoked from within

    “SMAT:main [llength $argv] $argv”

       (file “/quovadx/qdx5.2/integrator/bin/hcismat” line 4609)

    Would someone please tell me what I need to do?

    Thanks …

    Misti R. Wannamaker

    Systems Analyst

    The Regional Medical Center

    803.395.2806

Viewing 3 reply threads
  • Author
    Replies
    • #57580
      James Cobane
      Participant

      Misti,

      There are a couple of things:

      1) I assume that when you say you are running ‘Reflections’ you are referring to ReflectionsX, the X windows emulator.

      2) Are you running it as the ‘hci’ user? Are you ‘su’ ‘ing to hci, and if so are you performing ‘su – hci’ so that hci’s .profile runs?

      Within the .profile (/home/hci/.profile), there should be a command to export the $DISPLAY environment variable:

      export DISPLAY

      The error your getting indicates that the DISPLAY environment variable isn’t set so the GUI doesn’t know what display to report back to.

      Hope this helps.

      Jim Cobane

      Henry Ford Health

    • #57581
      Paul Johnston
      Participant

      Misti,

      I run Reflections X also . There are 2 methods to run Relections.

      1 as a Telnet session and

      2 as a X-Windows session.

      If you just type hcismat & from a Telnet session the server does not

      have a DISPLAY to send it results .

      Try executing a X-Windows session.

      Paul

    • #57582
      Lawney Lovell
      Participant

      We use a script to execute the smat command, but you can enter the same thing from a command line, inserting the ip address of your pc.

      export DISPLAY=:0.0

      hcismat

      The smat tool from the Unix server runs much faster than the GUI version but doesn’t offer as many options and isn’t as pretty.  We are on Version 5.2 and get an error (error running editor: couldn’t execute “hciguieditor”: no such file or directory) when Edit button is selected.  I don’t know if something is missing in the version because that executible doesn’t exist in the $HCIROOT/bin directory.

      Hope this helps!

    • #57583
      Anonymous
      Participant

      AS hci user with the tcsh you should be able to execute an alais that will set your DISPLAY variable

      it is called

      setdisplay

      and would look like this in your /home/hci/.cshrc.local.end

      alias setdisplay setenv DISPLAY `who am i | awk “‘”‘{ print $6}'”‘” | sed “‘”s/”[()]”//g”‘”`:0.0

      or you could execute the entire cmd yourself

      setenv DISPLAY `who am i | awk ‘{ print $6}’ | sed ‘s/[()]//g’`:0.0

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10