Prev: Setting CNAMES via ddns from dhcp3
Next: Iceweasel nor Epiphany open google.com.br, but Opera do that.
From: hadi motamedi on 2 May 2010 05:20 Dear All I need to schedule for a repeated task on my Debian server, as the followings: -) Telnet to a remote node -) Issue a command -) Capture the output in a log -) Logout from Telnet -) Wait for a prescribed time interval -) Then redo , but append the subsequent output in just on file Can you please let me know which options do we have to write such a task? Thank you
From: d.sastre.medina on 2 May 2010 06:50 On Sun, May 02, 2010 at 10:11:43AM +0100, hadi motamedi wrote: > Dear All > I need to schedule for a repeated task on my Debian server, as the > followings: > -) Telnet to a remote node > -) Issue a command > -) Capture the output in a log > -) Logout from Telnet > -) Wait for a prescribed time interval > -) Then redo , but append the subsequent output in just on file > Can you please let me know which options do we have to write such a task? > Thank you Hello, For that task, you want expect. To schedule it, you need cron. Regards. -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
From: Om Prakash on 2 May 2010 07:50 On Sunday 02 May 2010 04:16 PM, d.sastre.medina(a)gmail.com wrote: > On Sun, May 02, 2010 at 10:11:43AM +0100, hadi motamedi wrote: > >> Dear All >> I need to schedule for a repeated task on my Debian server, as the >> followings: >> -) Telnet to a remote node >> -) Issue a command >> -) Capture the output in a log >> -) Logout from Telnet >> -) Wait for a prescribed time interval >> -) Then redo , but append the subsequent output in just on file >> Can you please let me know which options do we have to write such a task? >> Thank you >> > Hello, > > For that task, you want expect. > To schedule it, you need cron. > > Regards. > > yes expect will help better to achieve telnetting part. you can either use at or cron to schedule it. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4BDD65AD.6080403(a)gmail.com
From: Kevin Ross on 3 May 2010 14:50
> From: d.sastre.medina(a)gmail.com [mailto:d.sastre.medina(a)gmail.com] > Sent: Sunday, May 02, 2010 3:47 AM > > On Sun, May 02, 2010 at 10:11:43AM +0100, hadi motamedi wrote: > > Dear All > > I need to schedule for a repeated task on my Debian server, as the > > followings: > > -) Telnet to a remote node > > -) Issue a command > > -) Capture the output in a log > > -) Logout from Telnet > > -) Wait for a prescribed time interval > > -) Then redo , but append the subsequent output in just on file > > Can you please let me know which options do we have to write such a > task? > > Thank you > > Hello, > > For that task, you want expect. > To schedule it, you need cron. > > Regards. Yes, expect will work, but if you can use ssh, use it, it will be easier. Setup ssh to use RSA key for authentication, so it won't prompt for a password. Then just execute "ssh username(a)remote.server somecommand" and it will run "somecommand" and the output will be sent back to you. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/015501caeaf1$5e206640$1a6132c0$@net |