Calling a script on specific days

Posted on 2011-10-13
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
    LVL 86

    Expert Comment

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

    Author Comment

    @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

    For bash at least

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

    Expert Comment

    Oops -that should have been 'date'
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now