Search Results

Search: Posts Made By: ph0enix
10,657
Posted By in2nix4life
The following will read a file line-by-line....
The following will read a file line-by-line. Replace "users.txt" with the name and path to your file.


#!/usr/bin/expect -f
#

set fh [ open "users.txt" r]

set fileData [read $fh]

close...
10,657
Posted By Corona688
That sounds a lot better, yes. :) Surely you...
That sounds a lot better, yes. :) Surely you could modify it for what you liked.

I don't know much about expect myself unfortunately.

Perhaps this expect loop...
Showing results 1 to 2 of 2

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