This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
user:jhammo13:start [2010/02/26 21:47] – created jhammo13 | user:jhammo13:start [2010/03/26 17:07] (current) – jhammo13 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | The bot was difficult. It had to be downloaded from the eggdrop website and then egghelp website helped to learn how to install it. I started by using ./configure to make sure the shell had the right tools. make config sets up what to configure.' | ||
+ | |||
+ | After installing it the congif file had to be edited for our specific needs. There were 2 ' | ||
+ | |||
+ | After this it is just compiled, ran and then follow the run command. | ||
+ | |||
+ | Using the ps command can detect weather it is actually running or not. | ||
+ | |||
+ | Thus now GOD is up and running. | ||
+ | |||
+ | ___________________________________________________________________________________________________________ | ||
+ | |||
+ | nc command | ||
+ | |||
+ | The nc command lets you connect to somewhere by using hostname then port or ports. | ||
+ | It also lets you listen for inbound by using nc -l -p port hostname. | ||
+ | |||
+ | ___________________________________________________________________________________________________________ | ||
+ | |||
+ | #!/bin/sh | ||
+ | echo "Enter your name: " | ||
+ | read name | ||
+ | echo "Your name is $name" | ||
+ | echo " | ||
+ | exit | ||
+ | |||
+ | </ | ||
+ | |||
+ | ___________________________________________________________________________________________________________ | ||
+ | echo "enter first number: " | ||
+ | read num1 | ||
+ | echo "enter second number: " | ||
+ | read num2 | ||
+ | echo "enter third number: " | ||
+ | read num3 | ||
+ | echo "enter fourth number: " | ||
+ | read num4 | ||
+ | |||
+ | sum=`echo $num1+$num2+$num3+$num4 | bc` | ||
+ | echo "The sum of the numbers is: $sum" | ||
+ | product=`echo $num1*$num2*$num3*$num4 | bc` | ||
+ | echo "The product of the numbers is: $product" | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||