
Hi Techies, I need to create a cron job for a SiWAPP online invoice app, any body who is familiar with cron jobs; how to create and how to execute, i will appreciate your contributions With Kind Regards * * -- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us. Calvin Omari Systems Software Developer http://www.facebook.com/barongo

Hi Calvin, Here is a good resource: http://en.wikipedia.org/wiki/Cron On Thu, Mar 8, 2012 at 11:18 PM, Calvin Omari <calvinebarongo@gmail.com>wrote:
Hi Techies,
I need to create a cron job for a SiWAPP online invoice app, any body who is familiar with cron jobs; how to create and how to execute, i will appreciate your contributions
With Kind Regards
* * -- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Software Developer http://www.facebook.com/barongo
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Brian Ngure

I dont know what exactly you are trying to schedule; but the net has loads of examples... root@NODE% crontab -l <list crontab> Prepare your crontab schedule on a notepad; in terms of the minutes; hours; days; months you want to execute a particular command or script. That command or script should be created prior to creation of the crontab ; eg The script below would execute the isplog script every 5 min every 20 hours etc etc root@NODE% crontab -e 5,20,35,50 * * * * /usr/bin/ttx/tools/isplog

Edit /etc/crontab with the following format: # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed To stop dumping any data to terminal from your script (if it prints anything) you can route it to /dev/null e.g. * * * * * user /my/script.sh > /dev/null 2>&1 The above cron job will run every minute.

I forgot to add this - you need to restart crond for it to take effect: sudo service crond restart or sudo /etc/init.d/crond restart -> if you're on Fedora or similar system

On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Techies,
I need to create a cron job for a SiWAPP online invoice app, any body who is familiar with cron jobs; how to create and how to execute, i will appreciate your contributions
Just look at /etc/crontab man crontab -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.

@Wash, +1 for *R*ead *T*he *F*lowery *M*anuals ...... on cron. :P Martin. On Mar 8, 2012 11:45 PM, "Odhiambo Washington" <odhiambo@gmail.com> wrote: On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Techies,
I n...
Just look at /etc/crontab man crontab -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Thanks a lot for all this inputs let me see whether I will be able to schedule automatic emails to clients' email addresses With Kind Regards On Fri, Mar 9, 2012 at 3:06 AM, Martin Chiteri <martin.chiteri@gmail.com>wrote:
@Wash, +1 for *R*ead *T*he *F*lowery *M*anuals ...... on cron. :P
Martin.
On Mar 8, 2012 11:45 PM, "Odhiambo Washington" <odhiambo@gmail.com> wrote:
On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Techies,
I n...
Just look at /etc/crontab
man crontab
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us. Calvin Omari Systems Software Developer http://www.facebook.com/barongo

Hey Above it make the script is executable. Use chmod e.g. chmod 777 /path_to_my_script/ ./TheMburu On Fri, Mar 9, 2012 at 5:17 AM, Calvin Omari <calvinebarongo@gmail.com>wrote:
Thanks a lot for all this inputs let me see whether I will be able to schedule automatic emails to clients' email addresses
With Kind Regards
On Fri, Mar 9, 2012 at 3:06 AM, Martin Chiteri <martin.chiteri@gmail.com>wrote:
@Wash, +1 for *R*ead *T*he *F*lowery *M*anuals ...... on cron. :P
Martin.
On Mar 8, 2012 11:45 PM, "Odhiambo Washington" <odhiambo@gmail.com> wrote:
On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Techies,
I n...
Just look at /etc/crontab
man crontab
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Software Developer http://www.facebook.com/barongo
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Conservatism is the adherence to the old tried against the new untried.

777 is a very bad Idea. chmod+x /path_to_my_script/ may be if its not 777 already. On 03/09/2012 08:15 AM, TheMburu George wrote:
Hey
Above it make the script is executable. Use chmod e.g.
chmod 777 /path_to_my_script/
./TheMburu
On Fri, Mar 9, 2012 at 5:17 AM, Calvin Omari <calvinebarongo@gmail.com <mailto:calvinebarongo@gmail.com>> wrote:
Thanks a lot for all this inputs let me see whether I will be able to schedule automatic emails to clients' email addresses
With Kind Regards
On Fri, Mar 9, 2012 at 3:06 AM, Martin Chiteri <martin.chiteri@gmail.com <mailto:martin.chiteri@gmail.com>> wrote:
@Wash, +1 for *R*ead *T*he *F*lowery *M*anuals ...... on cron. :P
Martin.
On Mar 8, 2012 11:45 PM, "Odhiambo Washington" <odhiambo@gmail.com <mailto:odhiambo@gmail.com>> wrote:
On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com <mailto:calvinebarongo@gmail.com>> wrote: > > Hi Techies, > > I n...
Just look at /etc/crontab
man crontab
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121 <tel:%2B254733744121>/+254722743223 <tel:%2B254722743223> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke <mailto:Skunkworks@lists.my.co.ke> ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 <http://my.co.ke/phpbb/viewtopic.php?f=24&t=94> ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke <mailto:Skunkworks@lists.my.co.ke> ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 <http://my.co.ke/phpbb/viewtopic.php?f=24&t=94> ------------ Other services @ http://my.co.ke
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Software Developer http://www.facebook.com/barongo
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke <mailto:Skunkworks@lists.my.co.ke> ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 <http://my.co.ke/phpbb/viewtopic.php?f=24&t=94> ------------ Other services @ http://my.co.ke
-- Conservatism is the adherence to the old tried against the new untried.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Alex i agree with you Chmod +x /path_to_script/ is the best way to do it On Fri, Mar 9, 2012 at 8:32 AM, Alex Kamiru <nderitualex@gmail.com> wrote:
777 is a very bad Idea.
chmod+x /path_to_my_script/ may be if its not 777 already.
On 03/09/2012 08:15 AM, TheMburu George wrote:
Hey
Above it make the script is executable. Use chmod e.g.
chmod 777 /path_to_my_script/
./TheMburu
On Fri, Mar 9, 2012 at 5:17 AM, Calvin Omari <calvinebarongo@gmail.com>wrote:
Thanks a lot for all this inputs let me see whether I will be able to schedule automatic emails to clients' email addresses
With Kind Regards
On Fri, Mar 9, 2012 at 3:06 AM, Martin Chiteri <martin.chiteri@gmail.com
wrote:
@Wash, +1 for *R*ead *T*he *F*lowery *M*anuals ...... on cron. :P
Martin.
On Mar 8, 2012 11:45 PM, "Odhiambo Washington" <odhiambo@gmail.com> wrote:
On Thu, Mar 8, 2012 at 23:18, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Techies,
I n...
Just look at /etc/crontab
man crontab
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Our greatest fear is not that we are inadequate, but that we are powerful beyond measure. It is our light, not our darkness, that frightens us.
Calvin Omari Systems Software Developer http://www.facebook.com/barongo
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Conservatism is the adherence to the old tried against the new untried.
_______________________________________________ Skunkworks mailing listSkunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribehttp://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Ruleshttp://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Thanks *Ronnie Kilel* ronniekilel@gmail.com *squeaky wheel gets the grease** *
participants (9)
-
Alex Kamiru
-
Brian Ngure
-
Calvin Omari
-
Haggai Nyang
-
Martin Chiteri
-
ndungu stephen
-
Odhiambo Washington
-
Ronnie kilel
-
TheMburu George