Now it works... thanks!
--- In [email protected], "Sander Huijsen" <[EMAIL PROTECTED]> wrote: > > Looks like you need to add more spaces. You typed: > > while [1]; do > > You should type: > > while [ 1 ]; do > > Sander > > > > 2007/11/18, ssmtux <[EMAIL PROTECTED]>: > > > > Hi, > > > > I received a strange problem with the following script: > > > > #!/bin/sh > > > > REPO_MSG='/mnt/flash' > > LOG='log.txt' > > > > function f1 { > > if["$a" != "$b"];then > > prev_a=$a > > else > > echo "a" > > fi > > } > > > > while [1];do > > echo "Running" > > #Call function > > f1 > > done > > > > When I run the script I received > > function not found > > > > and seems that I arrive inside the while in fact I didn't see the > > output "Running".. > > > > I think that the syntax should be correct, maybe busybox doesn't > > support something? > > > > Thank you for replay! > > > > > > >
