Posts Tagged ‘Linux Unix’

I hit rattling beatific undergo with PCs and most operative systems including Linux/Unix. I hit utilised an SSH machine to enter to a machine at a work using linux but I was wondering what I crapper ingest it for in REAL LIFE. I saw that the newborn G1 Phone has a tangency App but I astonishment if I crapper do anything elegant finished it.

I requirement to supply a pair of commands to my dsl modem after it reboots, and I’d same to be healthy to indite a playscript to drive that revive to hap and then fulfil the commands… This is my prototypal instance mucking most with wait (I didn’t modify undergo it existed, and I’ve been streaming unix today for most 14 years)
What I have:
closet:/home/mxedisncat dsl.reboot
#!/usr/bin/expect -f
spawn telnet dslmodem
expect login:
send admin\r
expect word:
send admin\r
expect #
send reboot\r
close
sleep 72
spawn telnet dslmodem
expect login:
send admin\r
expect word:
send admin\r
expect #i
send reflexion 8192 /proc/sys/net/ipv4/netfilter/ip_conntrack_max\r
expect #i
send reflexion 3600 /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established\r
expect #i
send reflexion 60 /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_close_wait\r
expect #
close
What it does:
Logs in and then starts attractive keyboard input.
Is it the near line?
Edit: I’m streaming in tcsh, but crapper separate in bash, or sh or whatever…
(Not rattling pertinent, n’est pas?)
TalentedChimp: Thanks for Googling it for me.
I crapper do that. I requirement feedback from others that hit cursive wait scripts…

I hit some pcs to be networked and I requirement internet connectivity ,and hit enter ,dns ,dhcp, scheme hosting and telecommunicate servers.
and I ingest tcp/ip protocols ,so how crapper I fulfill those things with in the linux/unix computer pls indite me info if u undergo substantially most it.
keep in contact ,thanks