On Wed, 2002-05-01 at 00:54, christopher j bottaro wrote:
>
> yeah, check it out, its a little script for lauching quake3 (urban terror
> mod). i got a bunch of computers behind a linksys router, so each user has
> to have a unique net_port.
>
> SUFFIX=$(($UID % 100))
> if [ "$SUFFIX" -lt 10
On Tuesday 30 April 2002 06:00 pm, David Talkington wrote:
> But is % really what you meant? / divides; % gives remainder after
> (${UID}/100).
yeah, check it out, its a little script for lauching quake3 (urban terror
mod). i got a bunch of computers behind a linksys router, so each user has
On Tue, 30 Apr 2002, christopher j bottaro wrote:
> SUFFIX=${UID} % 100
Um, what the heck are you trying to do? This doesn't seem particularly
useful, epecially if you have large numbers of UIDs. You might also want
to consider moving these sorts of non-Red Hat questions to a shell
programmin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tuesday 30 April 2002 06:33 pm, christopher j bottaro wrote:
> hehe, non strongly typed languages always confuse me. i'm trying to
> get this to work
> SUFFIX=${UID} % 100
> but it doesn't work. i think UID is not an int
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
christopher j bottaro wrote:
>hehe, non strongly typed languages always confuse me. i'm trying to get this
>to work
>SUFFIX=${UID} % 100
let SUFFIX=(${UID} % 100)
But is % really what you meant? / divides; % gives remainder after
(${UID}/100).
On Tue, 2002-04-30 at 15:33, christopher j bottaro wrote:
> hehe, non strongly typed languages always confuse me. i'm trying to get this
> to work
> SUFFIX=${UID} % 100
> but it doesn't work. i think UID is not an interget var. since bash vars are
> not strongly
hehe, non strongly typed languages always confuse me. i'm trying to get this
to work
SUFFIX=${UID} % 100
but it doesn't work. i think UID is not an interget var. since bash vars are
not strongly typed, i figured it would just do the cast for me.
thanks for the help (for the prev