?
Solved

Calling a script on specific days

Posted on 2011-10-13
5
Medium Priority
?
206 Views
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...
0
Comment
Question by:gaugeta
  • 4
5 Comments
 
LVL 86

Expert Comment

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

Author Comment

by:gaugeta
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...
0
 
LVL 86

Accepted Solution

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

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

Expert Comment

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

Expert Comment

by:CEHJ
ID: 36963121
:)
0

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