Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
crontab for osx
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="estrellas" data-source="post: 41685"><p>hi guys - </p><p>i'm pretty new to mac systems (usually a windows person with some experience in redhat 9.0/7.2) ..</p><p></p><p>so i'm trying to install a crontab for my system and i was wondering the syntax and stuff of it .. is it the same as it is in linux or is it different? does stuff have to be in certain directories in order for it to work?</p><p></p><p>because what i have running right now is this...</p><p>[code]</p><p>MAILTO=me@email.edu</p><p>*/60 * * * * ( $PATH/backup.sh -n $PATH/bkup.txt) > /dev/null;</p><p>*/2 * * * 6 ( $PATH/backup.sh -f $PATH/bkup.txt) > /dev/null;</p><p>[/code]</p><p></p><p>backup.sh is to backup files from some of my stuff. ..and backup.txt tells the system what files. now i know that this script does work on linux because that's where i wrote it .. and i *think* i should be getting emails every minute telling me that the files are backed up and stuff, but nothing is showing up in my little window.</p><p></p><p>that's my other question in general too ...</p><p>does osx have the same commands as linux? or are they different?</p><p></p><p>i think that's all for now .. thanks for reading this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="estrellas, post: 41685"] hi guys - i'm pretty new to mac systems (usually a windows person with some experience in redhat 9.0/7.2) .. so i'm trying to install a crontab for my system and i was wondering the syntax and stuff of it .. is it the same as it is in linux or is it different? does stuff have to be in certain directories in order for it to work? because what i have running right now is this... [code] MAILTO=me@email.edu */60 * * * * ( $PATH/backup.sh -n $PATH/bkup.txt) > /dev/null; */2 * * * 6 ( $PATH/backup.sh -f $PATH/bkup.txt) > /dev/null; [/code] backup.sh is to backup files from some of my stuff. ..and backup.txt tells the system what files. now i know that this script does work on linux because that's where i wrote it .. and i *think* i should be getting emails every minute telling me that the files are backed up and stuff, but nothing is showing up in my little window. that's my other question in general too ... does osx have the same commands as linux? or are they different? i think that's all for now .. thanks for reading this :) [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
crontab for osx
Top