Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6348005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:20:07+00:00 2026-05-24T21:20:07+00:00

I will preface this by saying I am very new to command line programming

  • 0

I will preface this by saying I am very new to command line programming with Debian Ubuntu…

I have been trying to set up a crontab list on a Debian Ubuntu server but have not been able to get it to work. Here is a sample:

MAILTO=myemail@gmail.com
* * * * * wall test
* * * * * /usr/bin/python2.6 /home/user/test.py > /home/user/clean_tmp_dir.log

The above shows up when I type “crontab -l” but no resulting output appears in the console. The “test.py” is supposed to generate a csv file but none is being created.

I am not receiving any output/error emails. I tried to find a log, but “var/log/cron” does not exist, nor does “etc/syslog.conf”…I tried to edit “etc/rsyslog.conf”, but got “E212: Can’t open file for writing”…I am logged in, however. Do I need some sort of special administrative privileges? Do I need to specify user or “root” or something?

Does anyone know what I’m doing wrong, how I can create/view a log, or how I can perform any other straightforward tests? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:20:09+00:00Added an answer on May 24, 2026 at 9:20 pm

    Ok, let’s start over again.

    Create a file, say cron.txt, with exactly the following contents (1 line):

    * * * * * touch $HOME/CRON_IS_RUNNING
    

    (Do not create CRON_IS_RUNNING manually.) Run

    crontab cron.txt
    

    which should quietly produce no output, then

    crontab -l
    

    which should print

    * * * * * touch $HOME/CRON_IS_RUNNING
    

    Wait a minute or so, perhaps 2 minutes, then

    ls -l $HOME/CRON_IS_RUNNING
    

    which should print something like

    -rw-r--r-- 1 yourname yourgroup 0 2011-08-23 20:11 CRON_IS_RUNNING
    

    If this all works, it will confirm that you can run cron jobs.

    If that’s successful, the problem may be with your test.py command. Does it work when you run it from the command line? If it works from the command line but not from cron, test.py might have some dependency on environment variables (cron jobs run with fewer environment variables set than interactive commands typically do).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me preface this by saying I am extremely new to git but have
Let me preface this by saying I'm very new to C# and Visual Studio
I will preface this question by saying, I do not think it is solvable.
I'll preface this by saying I have minimal experience with both Perl and Socket
I will preface this by I am new to XNA and I realize what
I'll preface this by saying that I've been a longtime fan of Stack Overflow,
I will preface this question with the fact that I am extremely new to
I will preface the question by saying that I am somewhat new to the
Let me preface this by saying that my code seems to work for all
I'll preface this question by stating I have historically used tables for my HTML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.