Results 1 to 4 of 4

Thread: cron does'n seem to be working

  1. #1
    Join Date
    Mar 2013
    Beans
    3

    cron does'n seem to be working

    I just got Ubuntu Server running, for testing purposes I have added just one line to my crontab (using crontab -e):

    */1 * * * * touch ~user/test/out

    Nothing seem to be happening.
    I have added all rights for everybody for test directory - nothing changed.

    What can it be?

    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: cron does'n seem to be working

    Hello and welcome to the forums.

    ~user/test/out
    ^^^This doesn't look right. Is it a valid location in your filesystem? Do you mean:

    Code:
    ~/test/out
    ...or
    Code:
    ~/user/test/out
    ...instead?

    You should also get in the habit of specifying full paths to directories/files and not use shortcuts in cron:
    Code:
    /home/user/test/out

  3. #3
    Join Date
    Mar 2013
    Beans
    3

    Re: cron does'n seem to be working

    Quote Originally Posted by Toz View Post
    Hello and welcome to the forums.
    ^^^This doesn't look right. Is it a valid location in your filesystem?
    No it isn't: user is a substitution for my username on the system.
    In crontab itself there is right username and thus location in the filesystem is valid.

    Quote Originally Posted by Toz View Post
    You should also get in the habit of specifying full paths to directories/files and not use shortcuts in cron:
    Code:
    /home/user/test/out
    Why?

  4. #4
    Join Date
    Mar 2013
    Beans
    3

    Re: cron does'n seem to be working

    Quote Originally Posted by Toz View Post
    Is it a valid location in your filesystem?
    Oops, look like it isn't: I have used my login name from other Unix system I use for year now, thus I wan't able to catch it.
    Excuse me for distracting you.

Bookmarks

Posting Permissions

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