According to Arek Dreyer
, you’d do that with shell scripts.
Dreyer, of Dreyer Network Consultants Inc. of Chicago, is also a contract trainer for Apple, but he comes to the Macintosh from the Unix world.
“OS X is so freaking cool,” he
said, obviously enamored of the graphical user interface put on top of his
Shell scripts, Dreyer
said, provide a way to control repetitive Unix tasks and when coupled with cron — a Unix application that will start applications or processes at specific times and dates — can make certain those tasks get accomplished without manual intervention.
Who should become a shell scripter, Dreyer
“Someone who isn’t afraid of the command line,” he
emphasized that shell scripts are lightweight applications and as such, some problems require a solution different than shell scripts.
“Use the appropriate tool,” said Dreyer
, suggesting that Perl or Python might solve a problem more elegantly than shell scripts.
said, “with Unix, there’s always more than one way to do it.”
Shell scripts support all the fundamental programming functions, he
said, such as if-then-else, looping, variables and input and output.
Using the “pipe” command, Dreyer
said, “allows the output of one command to become the input of another.”
“Crontab is difficult,” said Dreyer
“CronniX is easy.”
A freeware application (the author says he
will “make the source code available soon”), CronniX runs on Mac OS X and provides a graphical user interface to cron.