Results 1 to 3 of 3
Thread: - bash script
Hybrid View
-
27th September 2012 14:29 #1-
Join Date: Apr:2004
Location: Sf
Posts: 1,332
- bash script
:
, -, :PHP Code:# svccfg -s network/dns/client
svc:/network/dns/client> setprop config/search = astring: ("example.com" "sales.example.com")
svc:/network/dns/client> setprop config/nameserver = net_address: (192.168.1.10 192.168.1.11)
svc:/network/dns/client> select network/dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> quit
, -svccfg .PHP Code:svccfg -s network/dns/client setprop config/search = astring: "example.com""sales.example.com"
svccfg -s network/dns/client setprop config/nameserver = net_address: 192.168.1.10
3- - select bash .
"" .
11 11/11.
!1.5
-
27th September 2012 14:45 #2
, , :
input.txt:
:Code:setprop config/search = astring: ("example.com" "sales.example.com") setprop config/nameserver = net_address: (192.168.1.10 192.168.1.11) select network/dns/client:default refresh quit
Code:svccfg -s network/dns/client < input.txt
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
27th September 2012 14:55 #3-
Join Date: Apr:2004
Location: Sf
Posts: 1,332
-
1.5




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in