Re: How to schedule for a repeated task?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



hadi motamedi 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

If the remote end of this is some dumb device that can only do telnet, use 
expect, kermit, or perl's Net::Telnet module to chat with it.  If it is another 
computer, set up ssh keys and just run remote commands directly.  And use cron 
to schedule the runs.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux