Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: crontab

  1. #11
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    also it is still nto running, that is unless the server clock is wrong, can someone tell me how to see what time it is and possibly change the time? also give me any other things to look for to why it isnt working

  2. #12
    Join Date
    Jan 2008
    Beans
    4,757

    Re: crontab

    Quote Originally Posted by frenchface View Post
    no they are not identically. otherwise that would have made it alot easier
    Ah, Ok. I understand.
    Although, I am a lazy person, so I'd just through it all into one script anyway.
    Last edited by ibuclaw; May 25th, 2008 at 03:01 AM. Reason: Just read previous post, altering to match...

  3. #13
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    well how would i go about changing the time?

  4. #14
    Join Date
    Jan 2008
    Beans
    4,757

    Re: crontab

    OK, change subject. I think I've spotted a possible line that may be wrong.
    Quote Originally Posted by frenchface
    open W,">0.txt";
    Where do you expect the text files to be saved?

    Try altering it to something like:
    Code:
    open W, ">/home/frenchface/cron/output/0.txt";
    Ideally, a place where you have write access is a good start.

    Iain

  5. #15
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    well the txt files are being saved in /var/www/cgi-bin/ which is the same place that all the files are in. Now i know that the scripts them self do work because if I type perl 0.pl then the script executes properly

  6. #16
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: crontab

    Quote Originally Posted by frenchface View Post
    well the txt files are being saved in /var/www/cgi-bin/ which is the same place that all the files are in. Now i know that the scripts them self do work because if I type perl 0.pl then the script executes properly
    Did you make the change as suggested by tinivole in post #14? The files are being written to /var/www/cgi-bin/ if you still have the line
    Code:
    open W,">0.txt";
    Change the text after ">" to a path to a folder you have write privileges to. See tinivole's example.

  7. #17
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    ok it is not working.


    do i not have write privalges to all the folders? what if i change the permissions of the folder is that what i need to do?

  8. #18
    Join Date
    Jan 2008
    Beans
    4,757

    Re: crontab

    Quote Originally Posted by frenchface View Post
    ok it is not working.

    do i not have write privalges to all the folders? what if i change the permissions of the folder is that what i need to do?
    [EDIT]

    Try modding the lines to something like this:
    Code:
    0 * * * *   cd /var/www/cgi-bin/ && perl 0.pl
    Then type in:
    Code:
    sudo chown $USERNAME:$USERNAME /var/www/cgi-bin
    Regards
    Iain
    Last edited by ibuclaw; May 25th, 2008 at 03:00 AM.

  9. #19
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    ok i did it, i'll let you knwo if it works or not

  10. #20
    Join Date
    May 2008
    Beans
    17

    Re: crontab

    what idd the command do that you had me type in?

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

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
  •