cronjob ERROR: Unknown Punctuation String

Discussion in 'Site & Server Administration' started by zodiac, Sep 9, 2008.

  1. #1
    a client is trying run a cronjob and gets the error,ERROR: Unknown Punctuation String @ 13 STR: /.

    
    php -q /home/.username/public_html/something.php
    Code (markup):
    can the path not have a "."?
     
    zodiac, Sep 9, 2008 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    That depends on your server configuration. If the server path does have .username (with punctuation in front of the username) then you'll need to use it.
    I haven't played much with cron jobs, so I'm not sure what could be the right syntax to avoid that punctuation error (you did try /\.username maybe?) but you could maybe do something like this:

    
    cd /home
    ln -s .username username
    
    Code (markup):
    then after those steps, try using your cron command without punctuation like this:

    
    php -q /home/username/public_html/something.php
    
    Code (markup):
    That might do the trick. :cool:
     
    pr0t0n, Sep 9, 2008 IP