Unix/Linux Go Back    

Crontab Issue

UNIX for Dummies Questions & Answers

Kindly Note - This is a Single User Post by Forum Member jim mcnamara Regarding:
Crontab Issue.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 08-05-2005   -   Original Discussion by rickyt00
jim mcnamara's Unix or Linux Image
jim mcnamara jim mcnamara is offline Forum Staff  
Join Date: Feb 2004
Last Activity: 19 June 2018, 9:59 AM EDT
Location: NM
Posts: 11,414
Thanks: 628
Thanked 1,170 Times in 1,077 Posts
cron scripts do not have much of an environment - PATH etc may not be defined.

Assume that all references to things like "echo", if they are not shell builtins, must have a path - "/usr/bin/echo" or whatever. Plus, you have to shebang (#!/bin/ksh) on the first line of the script to get the shell you want - korn, etc. Otherwise you will get sh, your system's version of the Bourne shell.