Calling a script on specific days

Posted on 2011-10-13
Medium Priority
Last Modified: 2012-05-12
Hi Experts...
I have a script which calls a java program.
Now i have to call that script from another script providing different parameteres on monday and providing different parameters from tuesday-friday.
I work in TC shell.
How do i achieve this.
Please help...
Question by:gaugeta
  • 4
LVL 86

Expert Comment

ID: 36961063
1. cron daily
2. in the script that cron daily calls, determine the day, and therefore the parameters, for the real script

Author Comment

ID: 36961288
@CEHJ:Thanks for the reply.
I was asking how to check the day and then compare.
I am a newbie to scripting.
Please help...
LVL 86

Accepted Solution

CEHJ earned 2000 total points
ID: 36961296
For bash at least

day=$(data "+%a")
LVL 86

Expert Comment

ID: 36961320
Oops -that should have been 'date'
LVL 86

Expert Comment

ID: 36963121

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question