21 reputation
15
bio website
location
age
visits member for 2 years, 8 months
seen Nov 18 at 17:26

Oct
2
comment bridge or iptables or route?
Both of these are cat5 cables that plug into the server. One cable goes off in the building to some main router somewhere that then connects to the internet. The other cable connects to a WiFi router. As far as the server knows, both of these are ethernet networks, correct? They're both ethernet cables.
Oct
2
asked bridge or iptables or route?
Sep
12
awarded  Popular Question
May
31
awarded  Notable Question
Aug
29
awarded  Popular Question
Jul
5
comment random number needed
@manatwork Well, this is now working too. I just followed the steps you did, but didn't change anything. Everything looks exactly as yours does. It turns out that the server which will be running this is on an older version of Ubuntu. However, it worked fine on both computers. I don't know why it didn't work yesterday. I rebooted my home desktop yesterday after apt-get upgrade, but the server has been up for 34 days. Thanks for your help. I'm sure that you have better things to do. Are you some sort of Linux guru?
Jul
3
comment random number needed
@manatwork The first method ($RANDOM) works now. I have no idea why it was always giving me the same number when I first tried it. The second method, doing the same thing as indicated in your previous comment doesn't work until I press a key. See pastebin.com/YRT50yyv P.S. Thanks for your help.
Jul
2
comment random number needed
@manatwork The second method (/dev/urandom) requires <ENTER> to be pressed when run in a script! What am I doing wrong? [code follows. Each line ends with ']' so you can see what I'm doing] benson@SciSrv|08:55:/home/benson/scripts>cat abc] #!/bin/bash] #SLPTIME=$((RANDOM%6+1))m] SLPTIME=tr -dc '1-6' < /dev/urandom | head -c 1] echo $SLPTIME] benson@SciSrv|08:55:/home/benson/scripts>./abc] 5] benson@SciSrv|08:55:/home/benson/scripts>] benson@SciSrv|08:55:/home/benson/scripts>] [Notice the two command prompts at the end. I had to press <ENTER> before the script would stop.]
Jul
2
comment random number needed
@manatwork Your first solution does not work!!! #!/bin/bash SLPTIME=$((RANDOM%6+1))m echo $SLPTIME It always give 1m when run in a script. When I run it from the commandline it works. (Why can't I format anything in these damn comments!)
Jul
1
awarded  Scholar
Jul
1
awarded  Editor
Jul
1
revised random number needed
added 325 characters in body; edited tags
Jul
1
comment random number needed
I'm using this to change a crontab script so that it will not always run every 15 minutes, but at random times (15+-3 minutes).
Jul
1
asked random number needed
Mar
10
awarded  Student
Mar
10
asked Sed: replacing digits