Open a file with expect
- From: "BALESTRIERI UGO" <Ugo.Balestrieri@xxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Mar 2009 19:49:03 +0100
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
- Prev by Date: Strlen in csh shell
- Next by Date: PATH & MANPATH for VRTSvxvm
- Previous by thread: Strlen in csh shell
- Next by thread: PATH & MANPATH for VRTSvxvm
- Index(es):