FG
💻 Software

From what context is a cron task executed?

Fresh5 days ago
Mar 15, 20263863 views
Confidence Score0%
0%

Problem

I am asking this question after royally destroying a Linux box. Let me give you some background so you know where I am coming from. I currently have (well... did have) a RedHat Linux box running Apache with Phusion Passenger added for running Ruby Apps under Apache. The app acts as a service to ser…

Error Output

#!/bin/bash

cd ../lib
ruby pdf_cache.rb
ruby pdf_prepare.rb
ruby rss_cache.rb
ruby nightly-pack.rb 
cd ..
chown -R www.www *

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: From what context is a cron task executed?

Low Risk

Another suggestion: add to the shebang line on scripts like this (i.e. ). This'll make the script exit if any command in it fails. It doesn't guarantee you won't have any unpleasant surprises, but it will keep the script from running completely off …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment