The following command would be executed in a unix shell:
ncelab -generic 'FILE_NAME => "./code/tc1"' work.tb:configuration
Note: The single and double quotes must be passed to the ncelab tool, (ie they cannot be removed, substituted).
I want to execute this in a tcl script, however the single quotes are causing the tclsh to incorrectly format the exec command that gets sent to the unix shell, for instance here is one attempt which doesn't preserve the original unix shell formatting (resulting in error when executed
catch { exec ncelab -generic 'FILE_NAME => "./code/test_case1"' work.tb:configuration} ncelabrtn
The error is:extra characters after close-quote.
Question: How can I format the command I want to pass to the exec command so that it gets sent to the shell exactly as if I typed it on the command line without using tcl?
One thing I tried was using \ before the single and double quotes, thinking that would be correct -- however it wasn't.
Any help would be greatly appreciated. Thank you!
ncelab -generic 'FILE_NAME => "./code/tc1"' work.tb:configuration
Note: The single and double quotes must be passed to the ncelab tool, (ie they cannot be removed, substituted).
I want to execute this in a tcl script, however the single quotes are causing the tclsh to incorrectly format the exec command that gets sent to the unix shell, for instance here is one attempt which doesn't preserve the original unix shell formatting (resulting in error when executed
catch { exec ncelab -generic 'FILE_NAME => "./code/test_case1"' work.tb:configuration} ncelabrtn
The error is:extra characters after close-quote.
Question: How can I format the command I want to pass to the exec command so that it gets sent to the shell exactly as if I typed it on the command line without using tcl?
One thing I tried was using \ before the single and double quotes, thinking that would be correct -- however it wasn't.
Any help would be greatly appreciated. Thank you!