Find the answer to your Linux question:
Results 1 to 3 of 3
Dear All, I am setting my cron to work. I am in the roo account/ So first I type as vi crontab -e. Then it ask me type "visual" for ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    64

    [SOLVED] No crontab for root.

    Dear All,
    I am setting my cron to work. I am in the roo account/ So first I type as vi crontab -e. Then it ask me type "visual" for normal mode and do that then I type the following as below
    1 * * * * root usr/local/testClient/runClient.sh>/usr/local/testClient/cron1.log and press esc type wq. Then I restart the cron service /etc/init.d/crond stop and /etc/init.d/crond start. Lastly when I type crontab -l it tells me no crontab for root. So where did I go wrong any help please ?

  2. #2
    Just Joined!
    Join Date
    Oct 2010
    Posts
    1
    Try just

    Code:
    crontab -e
    "vi crontab -e" will cause vi to create a new file called crontab in the current working directory only

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    64
    Dear Scrp,
    Yes it works now. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...