At 09:49 +1300 11/10/10, Nigel Stanger wrote: >On 10/11/2010, at 6:47 AM, Doug McNutt wrote: > >> try >> crontab -l | bbedit > >Unfortunately that doesn't really solve the original problem. Sure, it lets >you edit the crontab, but you then have to figure out where to save it, which >for user crontabs isn't at all obvious. So non-obvious, in fact, that I just >discovered that Leopard moved them from where I remember them being >(/var/cron/tabs) to somewhere completely different (/usr/lib/cron/tabs). Took >me ten minutes to find the damn things :(.
Actually I always save such things where they get backed up. That way I can do things like saving an original so that I can easily step backward after I mess something up. The crontab tool will accept a file name as an argument to change the whole table If the file name is a single - it reads standard input. I thought that crontab processed the table so that the actual requests were merged into a global table for all users somewhere, perhaps in /var. But the format may not be what you expect. I haven't tried it but crontab might be happy with a new table piped to it and you might also be able to redirect the clipboard to it. After doing the crontab -l | bbedit, select the edited table and edit_copy, then pbpaste | crontab - crontab < pbpaste crontab - < pbpaste cat pbpaste | crontab - One of them might work. But be sure to back up your original table. man crontab does say that the EDITOR must save in place. BBedit might not want to do that, preferring to execute a save to a new file and delete the old only after being satisfied that the save operation worked OK. -- --> Marriage and kilo are troubled words. Turmoil results when centuries-old usage is altered in specialized jargon <--. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
