Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Misc > Re: cron on 10....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 28 of 68 Topic 6031 of 6424
Post > Topic >>

Re: cron on 10.5.2 server

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > May 2, 2008 at 02:24 PM

In article <b0bm14pqggf0j0fh3eep19p7hej7hadl6t@[EMAIL PROTECTED]
>,
 Howard Brazee <howard@[EMAIL PROTECTED]
> wrote:

> On Fri, 02 May 2008 08:19:31 -0500, Lewis
> <g.kreme@[EMAIL PROTECTED]
> wrote:
> 
> >> We're talking about using crontab to edit cron tables, and vi/vim has

> >> beeen the default editor for crontab for, like forever.
> >
> >Except when it's not.
> >
> >crontab actually has no default editor, it simply uses the EDITOR 
> >defined in your environment settings.
> 
> If someone is not interested in using Unix, won't use vi, but does use
> crontab - where should he put his .bash_profile or .bashrc file
> (created with textedit), and should the EDITOR= command look like, &
> what should he name it?
> 
> (This is a real question which I did not feel qualified to answer)

I'm not so sure you really can use a GUI editor to edit cron tables. I 
just tried with EDITOR set to TextWrangler's 'edit' command-line tool, 
and it exited immediately with:

 ex****t EDITOR=/usr/bin/edit
# echo $EDITOR
/usr/bin/edit
# crontab -e
crontab: no changes made to crontab

Not to mention, I fail to see why you'd even *want* to edit Unix cron 
tables with a GUI editor... Anyhow, I'll disregard that and assume you 
really do want to change your editor to a GUI tool...

If you're going to create any Unix configuration files with TextEdit, 
you'd better make damned sure you are saving the file as *Plain Text* 
and with *Unix* line breaks. If TextEdit can;t do this, don't even 
bother running TextEdit.

Personally, I'd just skip TextEdit completely and use a plain text 
editor that is designed for editing such files, like TextWrangler, which 
is free anyway, optionally installs an 'edit' command-line tool that 
allows TextWrangler to function as a replacement to various command-line 
editors.

..bashrc and .bash_profile both belong in your home directory 
(/Users/you). So open TextWrangler, and choose File > Open Hidden from 
the menu bar to look and see if you already have a ~/.bashrc or 
~/.bash_profile. 

If you already have these files, set TextWrangler's Open dialog box 
"Enable" menu to "All", then open the .bashrc file. 

If you don't have .bash_profile, create a new do***ent that has this 
content:

ex****t ENV=~/.bashrc

if test -f ~/.bashrc; then
        . ~/.bashrc
fi

Save the file as ".bash_profile" in your home folder, and be sure to 
click the Options button in the Save dialog box to specify you want 
*Unix* Line Breaks - otherwise the system will not read the file 
correctly.

If you *do* have .bash_profile, just make sure it contains the code 
above so your .bashrc will be source properly.

If you don't have .bashrc, create a new blank do***ent. If you *do* have 
..bashrc, you can just open it and add to the end of it. You'll want to 
add a line to your .bashrc file that says:

ex****t EDITOR=/usr/bin/edit

Save as plain text with Unix line breaks. When you are done, close and 
re-open a terminal window. To verify your changes worked, type:

echo $EDITOR

You should see the path to 'edit' echoed back to you, like this:

# echo $EDITOR
/usr/bin/edit

-- 
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
 




 68 Posts in Topic:
cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-21 11:49:24 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-21 21:45:35 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 00:13:07 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-22 00:02:18 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-22 07:04:07 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 13:33:52 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-23 06:45:51 
Re: cron on 10.5.2 server
Dave Seaman <dseaman@[  2008-04-23 12:09:23 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-23 17:31:12 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-02 08:09:13 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 13:32:05 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-22 23:55:44 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-23 11:28:04 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-23 08:45:13 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-23 14:46:54 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-23 16:12:10 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 12:42:20 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 10:05:31 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 15:24:54 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 10:36:11 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-24 16:50:04 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 11:40:35 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-24 18:04:11 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 16:06:41 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-25 07:04:50 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-02 08:19:31 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 09:02:57 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 14:24:50 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 14:09:45 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 15:51:31 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 17:53:42 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 18:52:23 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 21:02:55 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 19:02:02 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 21:01:56 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 20:13:10 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 07:36:47 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 14:40:13 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 08:01:06 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 16:58:16 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 12:29:01 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 14:40:19 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 13:55:33 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 14:59:36 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-04 07:15:10 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-05 08:06:51 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-07 16:33:46 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 06:34:35 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 00:48:49 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 06:50:59 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 00:57:18 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 07:34:34 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 02:20:35 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 08:47:19 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 02:52:11 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-07 16:30:21 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 14:04:19 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 00:55:51 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:17:03 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-23 23:46:10 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 12:37:21 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 13:27:35 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 01:42:37 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:16:02 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:44:27 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 22:43:14 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-26 00:42:56 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 23:23:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 7:31:09 CST 2008.