Find the answer to your Linux question:
Results 1 to 3 of 3
Hi friends, I am new for linux. Every Week i am running some commands to test my server performance. The commands are mypath>$ant mytarget1 mypath>$psql myscript_for_database mypath>$ant mytarget2 This is ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Need help to create linux script.Very urgent

    Hi friends,
    I am new for linux. Every Week i am running some commands to test my
    server performance. The commands are

    mypath>$ant mytarget1

    mypath>$psql myscript_for_database

    mypath>$ant mytarget2
    This is infinite.I have to stop this command after 3 hours with ctrl+c

    mypath>$psql myscript2

    mypath>$ant mytarget3

    May i know how to write this into scripts which runs every week automatically.
    Its very urgent.. please help me

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Here's a link to get you started, its bash shell script right:

    Advanced Bash-Scripting Guide

    Automating Tasks with Cron and Crontab files

    ...Gerard4143
    Make mine Arch Linux

  3. #3
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Here's a better crontab link:

    look at the "Daily Crontab Example" section

    SoS Wiki - - Crontab
    Make mine Arch Linux

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...