Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Terminal & crontab help

Terminal & crontab help
Thread Tools
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Feb 8, 2003, 08:05 AM
 
I know how to use telnet on the Linux web servers that I run, but Mac OS X is just different enough that I'm having a few problems.

I've set the default shell to bash since that is what I use with my web servers, but how can I permanently change my text editor from vi to pico as the default? Vi just confuses the hell out of me.

I tried,

bash-2.05a$ EDITOR=pico
bash-2.05a$ export EDITOR
bash-2.05a$ echo $EDITOR

But that only changes it per session.

Also I loaded up crontab for my user, crontab -e, and set up a job, but it doesn't run.

## Open DataBackup so that it can do it's thing
open /Applications/Data\ Backup\ X/Data\ Backup\ X.app

If I type, open /Applications/Data\ Backup\ X/Data\ Backup\ X.app, it does open DataBackup, but crontab isn't opening it.


Thanks for any help
     
Dedicated MacNNer
Join Date: Sep 2001
Location: San Jose CA
Status: Offline
Reply With Quote
Feb 8, 2003, 08:40 PM
 
Originally posted by Terri:
How can I permanently change my text editor from vi to pico as the default? Vi just confuses the hell out of me.

I tried,

bash-2.05a$ EDITOR=pico
bash-2.05a$ export EDITOR
bash-2.05a$ echo $EDITOR

But that only changes it per session.
If you put these commands in your ~/.profile, bash will read and execute them on startup. Try the following:

$ echo 'export EDITOR=pico' >> ~/.profile

Now when you start a new terminal your editor should be set to pico instead of vi.

HTH,

--ranga
     
Terri  (op)
Senior User
Join Date: Mar 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Feb 8, 2003, 09:13 PM
 
Originally posted by ranga:
If you put these commands in your ~/.profile, bash will read and execute them on startup. Try the following:

$ echo 'export EDITOR=pico' >> ~/.profile

Now when you start a new terminal your editor should be set to pico instead of vi.

HTH,

--ranga
Thanks
That worked great.

BTW I figured out what was wrong with my crontab file. I forgot to put the path to open.

This works,
30 1 * * * /usr/bin/open "/Applications/Data Backup X/Data Backup X.app
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:31 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2