Open a file with expect



Hi

Please I need to open and read a file with ksh script

I tried with :

#!/opt/MagellanContrib/bin/expect -f
#/usr/bin/expect -f
spawn cat /home/oamops/pr/trm_
puts "pipefd: [set pipefd [open /home/ops/pr/trm_ {RDONLY
NONBLOCK}]]"
puts "$pipefd"

But I saw on screen :
pipefd: file5

I don't know how use the value into file.
I want to use a file because I succeded to pass only one value from csh
script to a ksh with expect functions

Anybody could help me ?
Thanks in advance
UB
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers