hi prateek
thinking of starting on a little howto, will let you know shortly about
it.
sandeep, my expect script is a little weird, earlier i had (as far as i
remember, specified some tcpserver), but this time just have the
following (and it works :))
-> /var/service/cyberoam/run
-----------------------------------------
#!/bin/sh
exec /opt/24online/script.exp
-----------------------------------------
-> /var/service/cyberoam/log/run
-----------------------------------------
#!/bin/sh
exec /usr/bin/setuidgid root /usr/bin/multilog t \
s2500000 /var/log/cyberoam
-----------------------------------------
-> /opt/24online/script.exp
-----------------------------------------
#!/usr/bin/expect -f
set timeout -1
spawn /opt/24online/connect
match_max 100000
expect -exact "Password:"
send -- "mypassword\r"
expect eof
-----------------------------------------
-> /opt/24online/script.exp.firsttime
-----------------------------------------
#!/usr/bin/expect -f
set timeout -1
spawn /opt/24online/connect
match_max 100000
expect -exact "Server Address in dotted decimal format :: "
send -- "172.16.0.1\r"
expect -exact "172.16.0.1\r
Password:"
send -- "mypassword\r"
expect eof
-----------------------------------------
-> /opt/24online/connect
-----------------------------------------
/opt/24online/24onlineClient -u myusername -v
-----------------------------------------
http://sourceforge.net/projects/cyberoam/
am i using the correct method? lemme know
thanks
vivek
On Mon, 2002-11-18 at 21:22, Prateek Khanna wrote:
> hey vike and sandeep
> i want a copy of that 24Online script and howto as well...
> i do have a client thingie figured out on my end, but i have no idea about
> the expect programming thingie, and plus howto resume if the connection
> breaks.
>
> regards
> prateek
>
>
> ================================================
> To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject
>header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org
>
>