> Today after probably a year of not needing to edit my cron file I
> tried to but the setup seems broken
BBEdit changed in the meantime. You need to do this:
defaults write com.barebones.bbedit Filing:SafeSavesDisabled -bool YES
Regards,
Carlton
try
crontab -l | bbedit
--
--> A fair tax is one that you pay but I don't <--
> BBEdit changed in the meantime. You need to do this:
>
> defaults write com.barebones.bbedit Filing:SafeSavesDisabled -bool YES
Hmm, I'm not sure I like the idea of turning off safe saves globally just so I can edit my crontab in BBEdit. Wouldn't it make more sense to simply ignore that setting when you invoke bbedit -w?
--
Nigel Stanger, mailto:nsta...@infoscience.otago.ac.nz
Dept. of Information Science, http://divcom.otago.ac.nz/infosci/
University of Otago, Dunedin, NEW ZEALAND. XNS: =Nigel Stanger
"The last time somebody said, 'I find I can write much better with a word
processor,' I replied, 'They used to say the same thing about drugs.'"
--- Roy Blount, Jr.
> 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 :(.
--
Nigel Stanger, mailto:nsta...@infoscience.otago.ac.nz
Dept. of Information Science, http://divcom.otago.ac.nz/infosci/
University of Otago, Dunedin, NEW ZEALAND. XNS: =Nigel Stanger
"A computer lets you make more mistakes faster than any invention in human
history --- with the possible exceptions of handguns and tequila."
--- Mitch Ratliffe
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 <--.
I save my user crontab as ~/.crontab, and then do
crontab ~/.crontab
when I'm done editing it.
TjL
I save my user crontab as ~/.crontab, and then do
crontab ~/.crontab
when I'm done editing it.
> Hmm, I'm not sure I like the idea of turning off safe saves globally just so I can edit my crontab in BBEdit.
Yes, I feel that. Two points though:
1. Safe saves itself is quite new and you probably never missed it before.
2. I asked Patrick and he said it was okay.
;-)