Click to See Complete Forum and Search --> : Scripts to access multiple networks
APHRODITE007
02-20-2001, 04:38 AM
I was told to create these scripts , however i am still confused as how to implement...
script...
/usr/local/bin
home.sh
#/bin/bash/ifconfig eth0 ip 192.4.33.1 ifconfig eth0 ...
i added this line and then put in
IFCONFIG_0="196.22.11.6 broadcast and subnet
where do i put in the dns entry and gateway?
i am new to this so step by step inst would be very appreciated
i am running suse 7.0, have a pcmcia net card
thanks
:( :confused:
Gaccm
02-20-2001, 05:04 AM
do u know how to do everything you want without a script? cause a shell script is very simple.
(this line is convenient but optional) #!/bin/bash
[command 1 here]
[command 2 here]
[command 3 here]
you dont even need semicolons. (this is for a simple script that requires no input)
APHRODITE007
02-20-2001, 05:14 AM
Originally posted by Gaccm:
do u know how to do everything you want without a script? cause a shell script is very simple.
(this line is convenient but optional) #!/bin/bash
[command 1 here]
[command 2 here]
[command 3 here]
you dont even need semicolons. (this is for a simple script that requires no input)
APHRODITE007
02-20-2001, 05:18 AM
i don't know exactly what i need to do that is the problem
if i look at rc.config it gives me a similar line but still does not mention dns etc
Gaccm
02-20-2001, 05:21 AM
i meant, do u know what the commands needed to 'access multiple networks' (i really dont understand what that means but ok)? if you know how, then you can place them in a file like i said, if your trying to figure out... try the networking forum.