![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about several things in C | V4D3R | High Level Programming | 1 | 09-13-2007 10:56 PM |
| Complicating things? | bconnor | High Level Programming | 1 | 03-30-2006 10:07 PM |
| how to convert things from csh to sh | forevercalz | Shell Programming and Scripting | 1 | 10-28-2005 03:46 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
When things doesn't run into crontab???
Could someone explain my problem?
I've the following script... Code:
#! /bin/ksh
...
vmquery -m $MediaID | awk '
BEGIN {FS=": "
getline expdate <"ExpDate.txt"
}
$1 ~ /media ID/ {MediaNumber = $NF}
...
$1 ~ /number of mounts/ {
"date +%Y"|getline YearToday
Year4 = YearToday - 4
if ($NF > 2000)
{
if (expdate ~ "[0-9]\{2\}\/[0-9]\{2\}\/[0-9]\{4\}")
{
printf("\t %s \n\n","=case 1==================") >>"/home/op/report.txt"
printf("%-20s\t %s\t %s\n","Media Number",":",MediaNumber) >>"/home/op/report.txt"
...
But when I start this program via crontab, it is running whitout problem BUT it doesn't create the /home/op/report.txt What's the problem? what I should doing? Best regards, nm |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|