LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-06-2007, 11:17 PM   #1
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Rep: Reputation: 16
Question Cron Tab


Hi Guys

I my solaris 10.When i log in as user talat and try to schedule any task .First i change the editor by

bash-3.00$export EDITOR=vi

then

bash-3.00$crontab -e

after adding task i save it with:wq

It gives me following msg

crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.

What to do.

Regard
Talat
 
Old 06-07-2007, 12:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What's in the crontab, or what are you trying to put in the crontab? Looks like there's a line that's not correct.

BTW: If you want to make vi the permanent editor you can put the EDITOR=vi line in your ~/.profile (or /etc/profile to make it global for all users).

Hope this helps.
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Create A Cron Tab/Task? Harpo Linux - Newbie 4 01-07-2007 01:36 PM
cron tab user52 Linux - Newbie 3 11-29-2006 06:53 AM
help in cron tab framedrelay Programming 1 11-15-2006 07:49 AM
cron tab, what do you use it for? Fritz_Monroe Linux - Newbie 12 09-28-2006 02:54 PM
cron tab thefedexguy SUSE / openSUSE 4 07-06-2006 11:03 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration