LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recurring script (https://www.linuxquestions.org/questions/linux-newbie-8/recurring-script-934360/)

tamberahul.123@gmail.com 03-14-2012 03:38 AM

recurring script
 
how can i create a script file...which calls itself...?
calling must be FINITE times..am using cent os..

grail 03-14-2012 04:21 AM

Why is it any different that calling one script or command from a script?

TB0ne 03-14-2012 09:31 AM

Quote:

Originally Posted by tamberahul.123@gmail.com (Post 4626396)
how can i create a script file...which calls itself...?
calling must be FINITE times..am using cent os..

That would be through using a loop, with a counter. Both very well documented in any of the THOUSANDS of bash scripting tutorials. Have you checked any of them, or done/tried anything to write this? Show us what you've done, and we can help.

However, this sounds very much like homework...


All times are GMT -5. The time now is 11:47 PM.