The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-22-2008
SkySmart SkySmart is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 50
Weird Behavior of a Script

ok, there's a script i'm working on written in shell programming. #!/bin/sh


this script is written to spit out the contents of certain variables inside of it so the output looks something like this:


server01=89 server02=69 server03=89 server04=76


now, when i run this script from the command line, it outputs the expected results.

however, when i run it through cron, the fields are missing. i get something like this:

server01= server02= server03= server04=



any idea what could be causing this?


btw, in crontab, the script is set up to direct its output to a log file and it is in that log file that the fields are missing