Home > Community > Forums > Custom IC SKILL > Using tcl script to execute virtuoso

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Using tcl script to execute virtuoso 

Last post Mon, Nov 2 2009 9:57 PM by kbhow. 4 replies.
Started by kbhow 02 Nov 2009 01:11 AM. Topic has 4 replies and 2293 views
Page 1 of 1 (5 items)
Sort Posts:
  • Mon, Nov 2 2009 1:11 AM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Using tcl script to execute virtuoso Reply

    Hi,

    I facing some issue in making virtuoso run under tcl script. The script is very simple as below:

    #!/usr/bin/tcl

    exec "virtuoso -nograph -restore run.restore"

    exit

    Although it is simple but it failed with message :"virtuoso -nograph -restore run.restore" file/directory not found.

    My Question:

    1. Can we execute virtuoso nograph using tcl script. It will be no problem if i just run virtuoso only.

    2. If yes, how we do that.

    Your advice is much appreciated. Thanks

    How

    • Post Points: 20
  • Mon, Nov 2 2009 1:37 AM

    Re: Using tcl script to execute virtuoso Reply

    Hi How,

    This is just a simple Tcl mistake. Because you put quotes around the command, it is treating the command as a single argument, and it is looking for a file called "virtuoso -nograph -restore run.restore" - which is not what  you want.

    Just miss out the quotation marks.

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Nov 2 2009 1:50 AM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: Using tcl script to execute virtuoso Reply

    Hi Andrew,

    Thanks.

    But i tried any of the example below also not working. Please advice. Thanks

    exec virtuoso -nograph -restore run.restore

    OR

    exec virtuoso -nograph -restore "run.store"

    How

    • Post Points: 20
  • Mon, Nov 2 2009 1:58 AM

    Re: Using tcl script to execute virtuoso Reply

    Hi How,

    "Not working" isn't terribly descriptive. It depends on what you're expecting the script to do. If the "run.restore" script has got an exit() at the end, it should "work" - and the return value of the Tcl exec statement should be the text output from the virtuoso command. 

    Or you can put "&" at the end of the statement, and it will run in background.

    All depends on what you're trying to do. You might want to clarify...

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Nov 2 2009 9:57 PM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: Using tcl script to execute virtuoso Reply

    Hi Andrew,

    Cool. Now my script is working fine now. Thanks a lot.

    How

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by kbhow at 02 Nov 2009 01:11 AM. Topic has 4 replies.