When I execute the command openssl rand -base64 12 in the terminal it prints the output:
mFpVuBreI0dPENLF
I have the following tcl script where I have used exec to call to linux:
for {set kb 0} {$kb<5} {incr kb} {
exec openssl rand -base64 12
puts "end"
}
When I run the above script it prints the word "end" four times but doesn't print the output of openssl rand -base64 12. What is the reason for this?
Can any one help me?