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: 23 February 2018, 11:46 AM EST
Location: NM
Posts: 11,306
Thanks: 587
Thanked 1,136 Times in 1,046 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.