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 8867493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:02:56+00:00 2026-06-14T17:02:56+00:00

I have a cron job that executes once per day: 0 20 * *

  • 0

I have a cron job that executes once per day:

0 20 * * * /usr/bin/wget --timeout=10800 -O /home/File.txt http://www.site.com/script.php

and so far all was fine, but recently I found out the script just stops.

I looked in the /var/log/httpd/error_log (it’s a CentOS) and found this:

[Thu Nov 21 21:30:32 2012] [notice] child pid 8985 exit signal Segmentation fault (11)

Now, this means two things: the script was successfully running for about hour and a half, but then the segmentation fault happened. Ususally the script takes around 2 hours to complete, so it lacks around half an hour to complete it’s job.

Now, I can’t find the error which causes the script to stop even though I do have error_reporting turned on.

I’m wondering, is there some way so that I can find a potential error line which caused the script to terminate?

I did try google, and SO, ofc, and tried to achieve the same as on this question here on SO by doing this:

0 20 * * * /usr/bin/wget --timeout=10800 -O /home/File.txt http://www.site.com/script.php 2>1& >> /home/log.txt

but the log file is empty. I’m not so good at managing linux so it may be that my command is wrong in this cronjob, so please steer me right.

  • 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-06-14T17:02:57+00:00Added an answer on June 14, 2026 at 5:02 pm

    Try this

    0 20 * * * /usr/bin/wget --timeout=10800 \
    -O /home/File.txt http://www.site.com/script.php  >> /home/log.txt 2>&1 
    

    the 2>&1 part tells to send the STDERR to the same place as STDOUT.

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

Sidebar

Related Questions

I have a cron job that runs every minute. Every once in a while
I have a cron job scrape.sh that look like this: #!/bin/bash touch rage cd
I have a cron job that executes a codeigniter script. Underneath, somewhere, something is
I have a file update.php which does some MySQL operations. A cron job executes
I have a php script run as a cron job that executes a set
Cron installation is vixie-cron /etc/cron.daily/rmspam.cron #!/bin/bash /usr/bin/rm /home/user/Maildir/.SPAM/cur/*; I Have this simple bash script
If I have a cron job that run every 10 minutes and for some
I have a servlet running on GAE and I have a cron job that
I have a daily cron job that email PDFs to customers. I want to
I have a CRON job php script that I just set up not too

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.