Cannot save edit on cron on Solaris 10


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cannot save edit on cron on Solaris 10
# 1  
Old 02-20-2013
Cannot save edit on cron on Solaris 10

Hi Everyone,
I have edited my cron using 'crontab -e'. When I try to save the changes using ':wq!' The file closes but the changes are not saved. I get the following messages:
"/tmp/crontabJFainH" 45 lines, 2996 characters
trail.log
crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.


Can someone please help me?

Regards,
Scarlet
# 2  
Old 02-20-2013
Please let us know what have you edited inside the crontab ?
# 3  
Old 02-20-2013
There is a syntax error in the edited crontab.
Check against the description in man crontab
# 4  
Old 02-20-2013
00 2 * * * /usr/bin/bash /export/home/oracle/export.shl > /export/home/oracle/export.log 2> /export/home/oracle/export_error.log

I'm trying to change the time that the export runs.

Regards,
Scarlet
# 5  
Old 02-20-2013
That looks correct.
The error messages states another line in the crontab that has trail.log
# 6  
Old 02-20-2013
Can you check for some job in your crontab having
Code:
trail.log

part. Seems to have some issue with it.

Also check this file
Code:
/tmp/crontabJFainH

# 7  
Old 02-20-2013
Hi Vickram,

The following job has the 'trail.log', but it is commented off.

#00 17 * * * /usr/bin/bash /export/home/oracle/export_audit_trail.shl > /export/home/oracle/export_audit_trail.log 2> /export/home/oracle/export_error_audit_
trail.log

Regards,
Scarlet
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

2. UNIX for Dummies Questions & Answers

Save cron job get permission denied

After I edit the cron job by using crontab -e and using :wq! to save, i got following error message: "/tmp/crontabxvaarX" 1 line, 60 characters crontab: /tmp/crontabxvaarX: Permission denied Could anyone please help? (1 Reply)
Discussion started by: Alex Li
1 Replies

3. Shell Programming and Scripting

Bash script - add/edit to file and save - sed?

I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated. My example: sed -i '14 i\ # add these lines add these lines to... (5 Replies)
Discussion started by: Nvizn
5 Replies

4. Shell Programming and Scripting

what is the switch to let sed edit and save file

I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all. so instead of -> sed 's/A/B/' file > file-tmp -> mv file-tmp file what can i do to just let sed edit and save the "file" (4 Replies)
Discussion started by: fedora
4 Replies

5. Shell Programming and Scripting

How search,edit and save the file

Hi All, I want to edit a file using shell script..For ex...a file called /etc/passwd..here I am searching for "ftp" if it is there just change it to "tftp" without using any temporary file. (3 Replies)
Discussion started by: Vichu
3 Replies

6. Shell Programming and Scripting

Edit a file and save the changes

I have an xml file that gets created as a part of daily build. I have to modify some lines in this file, uncomment some lines, comment some line, add 2 new lines in the file every time. Is there an easier automated way to do this using perl, bash, or sh. I would appreciate it if someone can point... (1 Reply)
Discussion started by: saurabh1982
1 Replies

7. UNIX for Dummies Questions & Answers

How to edit cron jobs

Hi expert, I'd like to edit the cron jobs, please advice how do I do it. Thanks (2 Replies)
Discussion started by: shaan_dmp
2 Replies

8. Solaris

Different edit crontab at Solaris..?

Hi.. At linux I can edit crontab with command $crontab -e BUT I don't know to edit crontab at Solaris because I tried with command $crontab -e I can't do that Can you help me...? Thanks for solution regards, srilinux (25 Replies)
Discussion started by: srilinux
25 Replies

9. Solaris

cron edit

hi all, new to the site hope you can help something really easy I bet. When trying to edit the cron I get the following message 577 ? I try and enter a new line in but when I quit it keeps on saying no changes have been saved? any ideas. Thinking its to do with premissions of some sort? ... (2 Replies)
Discussion started by: fightinIrish
2 Replies

10. UNIX for Dummies Questions & Answers

Save Solaris x86

Anyone who uses, has used, or would like to use Solaris on Intel-compatible hardware should rush right over to this site: http://www.save-solaris-x86.org/ If you want it, make sure you speak up! (3 Replies)
Discussion started by: LivinFree
3 Replies
Login or Register to Ask a Question