Invoke script depending on previous scripts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Invoke script depending on previous scripts
# 1  
Old 06-26-2006
Invoke script depending on previous scripts

Hi,
I am in desperate needs for advice! I have a script which would invoke various java programs depending on the input parameter and a script which would perform calculation on the data inputted by the first script. The schedule of the job is like this

1) 10:00 am to 11:00 am: call java program to insert/update record type A
2) 11:00 am to 2:00 pm: call java program to insert/update record type B
3) 2:00 pm to 4:00 pm: call java program to insert/update recrod type C
4) 12:00 am to 9:00 am: call java program to insert/update record type D
5) 12:00 am to 9:00 am: after step 1/2/3/4 are done, I would to invoke a script to perform calculation.

Could any of you experts help me out?? I AM REALLY REALLY CONFUSED at this point! THANKS!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Depend on Script message needs to be invoke anothe script

I have script below #! /bin/bash if then echo "JBoss is NOT running" else echo "JBoss is running" fi If JBoss is NOT running need to be invoke another script i.e jboss startup script /home/vizion/Desktop/jboss-4.2.3.GA/bin/run.sh script from other script not... (5 Replies)
Discussion started by: Chenchireddy
5 Replies

2. Shell Programming and Scripting

Invoke scripts in different UNIX env

Hi, Problem Statement: We have 400 shell scripts to be tested and they run over 4-5 different unix environments. All these are run in SUDO mode. My requirement is to Define aliases for each script which accepts the Date & Order ID as a parameter so that I can submit all these scripts from 1... (4 Replies)
Discussion started by: Chiranjeeva
4 Replies

3. Shell Programming and Scripting

Script of invoke an email program

Is it possible that a shell script invokes a windows mailing application like Lotus Notes and creates a mail and sends it ? (2 Replies)
Discussion started by: csrohit
2 Replies

4. Emergency UNIX and Linux Support

invoke one script based on previous script execution

I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts 1. master script. I use this one to call other four scripts to do database work. 2. db_backup_1 and log_backup_1 3. db_backup_2 and log_backup_2 in master script, I want to... (4 Replies)
Discussion started by: duke0001
4 Replies

5. UNIX for Dummies Questions & Answers

Run scripts through AutoSys depending on holiday

Hi all, I am new to autosys. Can anyone help me in writing autosys job for the below script? Requirement is : 1.Every day it should run this script at particular time except on holidays. 2.The day after holiday some other script should be running. Thanks in advance. #!/bin/ksh #set... (0 Replies)
Discussion started by: raghuramyenni
0 Replies

6. Shell Programming and Scripting

Not able to invoke a sh script from KSH

Hi all, Iam writing a KSH script which needs to export dispaly to Xwindows and then involke a sh script .. But a core file is getting genrated for reasons not known to me. Please check i need incorporate below mentioend code in my script which iam not abel to .. export DISPLAY=`who am i |... (1 Reply)
Discussion started by: rahman_riyaz
1 Replies

7. Shell Programming and Scripting

How can i invoke SU command in shell script

Hi All , i am trying to switch user (from unix1 to unix 2 ) The user will give me the input and also the password . also how can i login into with the password . itried several attempts . no luck Can any one help on this !!! (4 Replies)
Discussion started by: raghav1982
4 Replies

8. UNIX for Dummies Questions & Answers

scripts remember the previous parameter???

I have a simple script. I have tried this in Bourne, Korn and C shells in my AIX ...no luck unset STARTQUEUE # Check parameters if then echo "*E* Batch Queue parameter is missing" else $BATCHQ/bin/setup.sh STARTQUEUE=$1 # If the queue doesn't exist, create it ... (3 Replies)
Discussion started by: KenL
3 Replies

9. Shell Programming and Scripting

invoke same script twice

hey, can I invoke the same script twice simultaneously? I want both instances to run at the same time with different parameters. Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies

10. Shell Programming and Scripting

how to invoke shell script

hi everybody, i learning unix now only.Can u pls guide me in invoking a shell script.Actually i need to know how to write the command for invoking the shell script.Suppose the shell file name is count , then how i will write the command. thanks (1 Reply)
Discussion started by: gopa_mani
1 Replies
Login or Register to Ask a Question
service(8)						      System Manager's Manual							service(8)

NAME
service - run a System V init script SYNOPSIS
service SCRIPT COMMAND [OPTIONS] service --status-all service --help | -h | --version DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /. The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start command. service --status-all runs all init scripts, in alphabetical order, with the status command. If the init script file does not exist, the script tries to use legacy actions. If there is no suitable legacy action found and COMMAND is one of actions specified in LSB Core Specification, input is redirected to the systemctl. Otherwise the command fails with return code 2. FILES
/etc/init.d The directory containing System V init scripts. ENVIRONMENT
LANG, TERM The only environment variables passed to the init scripts. SEE ALSO
chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5) Jan 2006 service(8)