Search Results

Search: Posts Made By: daaf
5,097
Posted By daaf
thanks! that makes sense. sorry for the...
thanks! that makes sense.

sorry for the slow reply. was out of town unexpectedly.
5,097
Posted By daaf
simplified: #!/usr/bin/expect -f # ...
simplified:


#!/usr/bin/expect -f
#
set myarg [lindex $argv 0]

set myexp "\\\["

set filename "input.txt"

set input [open $filename "r"]

gets $input line
string trim $line "\n"
...
5,097
Posted By daaf
try this: make an input.txt with \\\[ and run...
try this: make an input.txt with \\\[ and run this script. it expects an argument which it uses for "expect". it then prints the argument, global $myexp and the line read from the file in da.log.
...
5,097
Posted By daaf
expect: \\\[
hi all. i have a little problem:

i read the following from a file with gets

blabla;\\\[;blabla2

my script:

snip

while {[gets $input line] >= 0} {
set y 0
puts...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy