1753618 Members
5615 Online
108797 Solutions
New Discussion юеВ

Re: cygwin crontab ?

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

cygwin crontab ?

Hi,

Dose anyone knows if cygwin comes with crontab scheduling job in windows server? If yes, how to make it, or any package name associated with cypwin? If not, how to schedule jobs on cygwin execution from windows scheduler?

Help is appreciated!

Steven
Steve
3 REPLIES 3
Torsten.
Acclaimed Contributor
Solution

Re: cygwin crontab ?

If I start cygwin and type crontab:

bash-3.1$ crontab
crontab: usage error: file name must be specified for replace
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)

So it looks like it is available (too lazy to try it out, sorry)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jonathan Fife
Honored Contributor

Re: cygwin crontab ?

It's available if you checked the cron component during the cygwin install process.

Otherwise, you can create .bat files that run from scheduled tasks, and just run bash -c "/your/script.sh" from those.
Decay is inherent in all compounded things. Strive on with diligence
Robert-Jan Goossens
Honored Contributor

Re: cygwin crontab ?

Steven,

Add this one.
http://cygwin.com/packages/cron/

Best regards,
Robert-Jan