Author Topic: SSH Cron  (Read 2136 times)

callin

  • Posts: 7
    • View Profile
SSH Cron
« on: August 30, 2004, 08:07:10 pm »
Hello, me again.

I've gotten so far as to access my server with SSH and I put in the suggested line of code

15 0 *** etc. but when I hit enter it tells me that it's a 'bad date'.

Any hints of other lines I can try?  Thanks!

Cheryl

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
SSH Cron
« Reply #1 on: August 31, 2004, 02:05:09 am »
The code needs to be entered in as a "cron task".  When in ssh, try the command:

crontab -e

This will bring you into a linux text editor, we'll assume "vi", which is somewhat complicated.

If crontab -e does in fact load the text editor (vi) to enter your cron tasks, do the following:

hit INSERT
(to enter vi's insert mode)

type, or copy/paste your cron command

hit ESC

type these 3 characters :wq
(write/quit command)

hit ENTER

If all goes well, it will say "cron updated".  After that, enable the "send dailymail report" option on the Config page of ListMail and wait to see if you receive this message.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

carl1

  • Posts: 6
    • View Profile
Same SSH Cron Problem!!!
« Reply #2 on: August 31, 2004, 07:41:30 am »
I am having the same problem.

But I followed your instructions for the "vi" editor (which is the most progress I have made so far) and when I go to paste the code it will not past the "15 1 * * *" section of code??? It always starts at /usr...

I also noticed that when use the crontab -l command it does not show the scheduled crontab???

Also when I go to crontab -e it's not there???

WHat am i doing wrong???????

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
SSH Cron
« Reply #3 on: September 13, 2004, 12:15:50 pm »
You need to be sure you are using the "write/quit" command of vi with the following keystrokes:

Code: [Select]
<ESC>

:wq

<ENTER>

If all goes well it should say "crontab updated" and you should be able to see your entry in crontab -l

In order to avoid the problem with copying and pasting make sure you are in vi INSERT mode, by hitting INSERT before pasting.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting