On Sat, May 1, 2010 at 10:10 AM, hadi motamedi <motamedi24 at gmail.com> wrote: > Dear All > I need to schedule for a repeated task on my CentOS 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 Use cron to schedule the tasks. if you need to automate an interactive command you can use expect [1][2] [1] http://expect.nist.gov/ [2] http://en.wikipedia.org/wiki/Expect HTH -- Athmane Madjoudj