Quote:
Originally posted by aigles
The result of the 'echo *|wc -w' containts leading spaces before the count of words. If there are 40 files the resuly is ' 40' and not '40'.
Modify your test to make numic comparison :
Code:
while [ "$(blah)" -eq 40 ]
|
Thanks! I made the changes you requested and got this:
<hostname> code
Begin code processing on\n Thu Mar 11 13:22:55 PST 2004
Authentication successful.
Copying files from <hostname>
code: blah: command not found
code: [: : integer expression expected
Copy Complete
end code processing on\n Thu Mar 11 13:38:28 PST 2004
-if I use 'until' instead of 'while' it gives the same errors, except it ends up scp'ing the files through and doesn't exit the loop.