I facing some issue in making virtuoso run under tcl script. The script is very simple as below:
exec "virtuoso -nograph -restore run.restore"
Although it is simple but it failed with message :"virtuoso -nograph -restore run.restore" file/directory not found.
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
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.
But i tried any of the example below also not working. Please advice. Thanks
exec virtuoso -nograph -restore run.restore
exec virtuoso -nograph -restore "run.store"
"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...
Cool. Now my script is working fine now. Thanks a lot.