hi, How can I open crontab with gedit any any other editor ? i want to edit my cron jobs with other editors beside vi.
On 01/23/2013 05:23 AM, Adekoya Adekunle wrote:> hi, > > How can I open crontab with gedit any any other editor ? > > i want to edit my cron jobs with other editors beside vi.http://www.linuxquestions.org/questions/red-hat-31/how-to-change-the-default-crontab-editor-395750/ http://osxdaily.com/2011/03/07/change-set-the-default-crontab-editor/ http://www.linuxforum.com/threads/452-Set-your-default-editor-for-things-like-crontab-visudo-etc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20130123/ef66a2f4/attachment-0005.sig>
i tried this(gedit /etc/crontab). it loads a file. the content of this file is different from what i have in crontab -e. why the difference ? On Wed, Jan 23, 2013 at 12:31 PM, Reindl Harald <h.reindl at thelounge.net>wrote:> > > Am 23.01.2013 12:23, schrieb Adekoya Adekunle: > > hi, > > > > How can I open crontab with gedit any any other editor ? > > i want to edit my cron jobs with other editors beside vi > > su - > gedit /etc/crontab > >
Am 23.01.2013 um 13:13 schrieb Adekoya Adekunle <adekunleadekoya at gmail.com>:> i noticed something now. i setup a cron job with crontab -e on a local > machine and things work fine. i logged into a remote machine with SSH and > also setup the same job with crontab -e and things dont work > > what could be the cause ? could the reason be related to the difference > between crontab -e and /etc/crontab ? > > i would love to read on this$ man 5 crontab -- LF
On 01/23/2013 06:23 AM, Adekoya Adekunle wrote:> hi, > > How can I open crontab with gedit any any other editor ? > > i want to edit my cron jobs with other editors beside vi.From a terminal window: su gedit /etc/crontab & I do it all the time. I suppose there is a one line variant with sudo, but I tend to have a root terminal open for lots of different things.