The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FIND and CAT troubles uchoadea UNIX for Dummies Questions & Answers 2 04-20-2008 11:28 AM
ssh2 troubles PaulC UNIX for Dummies Questions & Answers 5 03-07-2006 05:10 AM
compariosn troubles... jagannatha UNIX for Dummies Questions & Answers 9 11-12-2003 11:35 PM
Troubles Installing RH7.2 Cameron UNIX Desktop for Dummies Questions & Answers 1 12-10-2002 01:59 PM
NetBSD Troubles vertigo UNIX Desktop for Dummies Questions & Answers 3 02-25-2002 08:52 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-08-2008
theninja theninja is offline
Registered User
  
 

Join Date: Jan 2008
Location: St. Louis
Posts: 50
cron troubles

I have a cronjob that I need to run everyday and it needs to have todays date inputed, here is what I have, but is not working as expected..........

23 02 * * * cd /path;./RequestSummaryReport.sh $(date +%Y-%m-%d)

the output from mail gives me.............

Code:
Date: Fri, 8 Feb 2008 02:12:07 -0600 (CST)
From: root@hostname.com
Message-Id: <200802080812.m188C74S025870@hostname.com>
Subject: cron

stty: : Not a typewriter

Please Enter the date for which you want the Daily Summary Report: (YYYY-MM-DD)
You entered:
Y-
is that correct?(y|n)
Buildfile: /path/ARAutoPostJMSClient.xml

run:
    [input] skipping input as property report.request has already been set.
     [java] Retrieving a QueueConnectionFactory from JNDI
     [java] factory created...
     [java] Creating a Connection
     [java] Starting the Connection
     [java] Creating a Session
     [java] Retrieving a Queue from JNDI
     [java] Creating a QueueSender
     [java] Creating a TextMessage
     [java] Adding Text
     [java] -Sending message [<ReportMsg><ReportType>autopostpayment.SummaryReport</ReportType><FileId></FileId><Date>Y-</Date></ReportMsg>] to queue://HDS.P.01/HDS.REQUEST.AR_REPORT.1_0
     [java] Closing QueueSender
     [java] Closing Session
     [java] Closing Connection
     [java] finished

BUILD SUCCESSFUL
Total time: 4 seconds


*************************************************
Cron: The previous message is the standard output
      and standard error of one of your crontab commands:

cd /path;./RequestSummaryReport.sh $(date +
Why is this date format not working correctly? If I manualy run
/path/RequestSummaryReport.sh $(date +%Y-%m-%d) it works fine. ?????

Dave
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0