Thanks, it is working. Now the only problem is if I rebbot after making changes in the crontab, then it is wirking as per schedule defined by me. But if I don't reboot machine, then I am not able to trace when it is starting. Any clue so that it takes changes on the fly.
Regds, Sandeep >From: Sanvir Singh Jham <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: [ilugd]: cron is not executing file >Date: Thu, 21 Feb 2002 11:02:30 +0530 > > >Dear Sandeep, > >To execute try give the following line in crontab: > >30 * * * * /home/vipine/try > >BTW, have you tried executing try as standalone? > > >Regards, >Sanvir Jham > > > >Sandeep Vasishta wrote: > > > Dear all, > > I want to run a set of commands periodically from cron. I >have > > made file try and put the commands there. Then from crontab -e command, >I > > have set that these commands should be run every 30 minutes. But it is >not > > running the commands. If I give command in crontab -e, then it is >working > > fine. There are around 12 commands and that is why I want to put the > > commands in the file. > > > > This is what I did: > > > > vi try > > > > cd /home/vipin > > mkdir vipin > > cp vipin try_cron > > > > and I have made try file executable. > > > > crontab -e > > > > 30 * * * * cd /home/vipine; ./try > > > > Pls. let me know if some one has tried this. > > > > Regds, > > Sandeep > > > > _________________________________________________________________ > > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > > ================================================ > > To subscribe, send email to [EMAIL PROTECTED] with subscribe in >subject header > > To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in >subject header > > Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org > > ================================================= > >-- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Sanvir Singh Jham >Velocient Technologies Limited, New Delhi >Tel: 694 5226/7/8 Fax: 694 3732 >[EMAIL PROTECTED] >[EMAIL PROTECTED] >Registered Linux User #163808 at http://counter.li.org >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Just Believe in the Best > > > > ================================================ >To subscribe, send email to [EMAIL PROTECTED] with subscribe in >subject header >To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in >subject header >Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org > ================================================= > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================