![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with my weird script! | kdyzsa | Shell Programming and Scripting | 1 | 06-15-2008 10:39 PM |
| Odd .sh behavior in script | robertmcol | UNIX for Dummies Questions & Answers | 2 | 02-10-2008 10:22 AM |
| Weird rsync behavior | scotbuff | OS X (Apple) | 2 | 12-24-2007 06:05 PM |
| weird behavior of grep -P | pankai | Shell Programming and Scripting | 2 | 12-20-2007 05:38 PM |
| Weird behavior on a Sun Fire V120 running solaris 10. | jsandova | SUN Solaris | 2 | 10-05-2007 06:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
|
||||
|
Quote:
cron was the last result i had to employ to try to fix this thing. there's a monitoring program called nagios that i was initially using to get the values of the variables. but it wasn't working. so i decided to use cron instead and write it to a file and then write another script to retrieve the info from the flatfile. and even that isn't working. the log file being written to has write/read/execute permission for everyonne. so i dont get why the fields just keep disappearing like this. |
|
|||||
|
take a look at a FAQ: cron and crontab
|
| Sponsored Links | ||
|
|