How to run CRON JOB IN SOLARIS ZONE

This entry was posted in Linux, Middleware, Virtualization, WebServer, Windows and tagged , on June 17, 2012, by

Hi I am new to solaris zones………..

I created a zone in solaris and i am trying to add a cron entry to that by

crontab -e but when I enter that command it is just showing 253 number…..

But when I enter crontab -l there are some entries my question is how to add cron entry??

when I do svcs -l cron
fmri svc:/system/cron:default
name clock daemon (cron)
enabled true
state online
next_state none
state_time Tue Oct 27 00:28:45 2009
logfile /var/svc/log/system-cron:default.log
restarter svc:/system/svc/restarter:default
contract_id 150
dependency require_all/none svc:/system/filesystem/local (online)
dependency require_all/none svc:/milestone/name-services (online)

Process :
zlogin <zonename>
bash
crontab -e
253

So please help me in cron tab entry…………………

 

This has nothing to do with zones. The crontab command is defaulting to the “ed” editor when the EDITOR variable is not set.

You can use this command:

EDITOR=vi crontab -e

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.