crontab cannot run

Asked by shijinjun

a servser as ubuntu 14.04 LTS
 i have a cron like this
* * * * * echo "ok\n" `date` >>/home/mozat/ttttttt on root
if i ssh on this server every id OK
but when i close all ssh it does not work.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
shijinjun (shijinjun) said :
#1

i test with this cron

* * * * * echo "ok\n" `date` >>/home/mozat/ttttttt by root

and i have others ***.sh

Revision history for this message
shijinjun (shijinjun) said :
#2

root@mozat12:/home/mozat# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mozat12--vg-root 455G 99G 333G 23% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.7G 4.0K 1.7G 1% /dev
tmpfs 345M 812K 345M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 4.0K 1.7G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 41M 183M 19% /boot
/home/mozat/.Private 455G 99G 333G 23% /home/mozat

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You do know that your crontab will run every second.... is this what you want?

Did you check the crontab log to see if the job was kicked off?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

How did you add the crontab?

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.