I am running a skill script in batch mode and need to print the out put in unix terminal. for example
here I need to print the value of c on terminal like VALUE=1 . I am trying with csh(print) command but its not working. Is this possible or I am trying something which is not possible ??
One simple way is to create a string with the sprintf command and then pass the string to the system command which will run that string in the Unix terminal from which virtuoso was invoked.
system(sprintf(nil "echo VALUE=%d" a+b))
Note that %d will only handle integers, you'll need %f for floats.
In reply to dmay:
In Case if I want to print only a text message(ex: "COMPLETED SUCCESSFULLY") then , do i need to use sprintf ?
In reply to KKANDOTH:
No, you could simply do this:
system("echo COMPLETED SUCCESSFULLY")
Thank You very much for your help..