Not able to execute batch file from TCL, able to execute from cmd -


hi not able execute batch file tcl shell. can execute command prompt.

 c:\btc>tclsh % exec log/file.bat couldn't execute "log\file.bat": no such file or directory % exit    c:\btc>log\file.bat    c:\btc>plink -ssh -l root -pw hrun*10 5.1.5.8 iperf -s -i 1 -f m    terminate batch job (y/n)? y 

as can see, giving error in tclsh , getting executed in cmd. please help.

batch files not quite directly executable on windows; need executed via correct interpreter. auto_execok (weirdly name historical reasons) command helps this:

exec {*}[auto_execok log/file.bat] 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -