Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Doesn't work as desired' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Doesn't work as desired
Authored by: eaganj on Jul 10, '03 11:44:26AM

You don't really want to change the permissions every hour (unless you don't trust yourself to run around behind the cronjob and change the permissions manually -- in which case this cronjob is useless).

Just set the cronjob to run at the borders. In your example, disable permissions at midnight and re-enable at 6pm:

0 0 * * * chmod 000 /Applications/MacSolitaire
0 18 * * * chmod 644 /Applications/Macsolitaire



[ Reply to This | # ]
Doesn't work as desired
Authored by: hmelton on Jul 10, '03 01:51:05PM

I set the cron up as you suggested at first, but since I am using a laptop that frequently is turned off, I decided to reset the permissions hourly to avoid having the application available or not available at unexpected times. The trick here is to train my brain. Computers can afford to be inefficient.



[ Reply to This | # ]
Doesn't work as desired
Authored by: readparse on Jul 10, '03 07:16:14PM

<jab type=easy>
If your brain was trained we wouldn't be talking about this.
</jab>



[ Reply to This | # ]