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: 11 December 2017, 3:59 PM EST
Location: NM
Posts: 11,249
Thanks: 577
Thanked 1,121 Times in 1,033 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.