How to schedule for a repeated task?
- From: hadi motamedi <motamedi24@xxxxxxxxx>
- Date: Thu, 6 May 2010 08:48:48 +0100
If issuing the commands manually produces the desired output, youto do . I tried as the followings :
could try autoexpect¹ and edit the output of running an autoexpect
session to your liking. There is a manual page too².
Thank you very much for your help . This is very near to what I really want
#autoexpect -c
#telnet 172.16.17.160
->command1
->logout
#exit
It has produced an script named 'script.exp' . When I run this script , I
see automatic telnet to the VxWorks remote node and then issuing the desired
command but to exit I need to press Ctrl-C . Then I tried to automate it
like the following :
#for i in 1 2 3 4 5
doIt is quite ok , except for the need that I must press Ctrl-C at the end of
./script.exp
sleep 10
done
every run . Can you please let me know how to remove that un-necessary
hitting of Ctrl-C ?
- Follow-Ups:
- Re: How to schedule for a repeated task?
- From: d . sastre . medina
- Re: How to schedule for a repeated task?
- References:
- RE: How to schedule for a repeated task?
- From: Kevin Ross
- Re: How to schedule for a repeated task?
- From: hadi motamedi
- RE: How to schedule for a repeated task?
- From: Kevin Ross
- How to schedule for a repeated task?
- From: hadi motamedi
- Re: How to schedule for a repeated task?
- From: Kevin Ross
- Re: How to schedule for a repeated task?
- From: hadi motamedi
- Re: How to schedule for a repeated task?
- From: d . sastre . medina
- RE: How to schedule for a repeated task?
- Prev by Date: Re: adding 192.x with static IP
- Next by Date: Re: isn't sed s,x,x, one big no-op?
- Previous by thread: Re: How to schedule for a repeated task?
- Next by thread: Re: How to schedule for a repeated task?
- Index(es):