Sponsored Content
Top Forums UNIX for Dummies Questions & Answers batch command in a shell script Post 78426 by ivvo on Tuesday 19th of July 2005 02:18:55 PM
Old 07-19-2005
batch command in a shell script

How do I execute a batch command from a script, which "waits" with the next command until the first one has finished?

=======
A piece of my script looks like this:
#!/bin/sh
(...)
# run a long batch job:
./run_calculation.sh
# then rename resulting file:
mv output.dat backup.dat
(...)

=======
and the problem is that "mv" command executes BEFORE "run_calculation.sh" has finished!

Thanks for any help
Ivo
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change the Windows Batch script to UNIX shell script.

Hi, When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script... Script: REM :: File Name : Refresh_OTL.bat REM :: Parameters : %1 - Region REM :: : %2 - Cube Type REM ::... (5 Replies)
Discussion started by: tomailraj
5 Replies

2. Shell Programming and Scripting

Help with 'batch conversion using lame' shell script

Hi. I am trying to write an sh script that will: 1. take each wav file in ~/Documents 2. convert each into mp3 format using "lame" encoder 3. save the new mp3 in ~/Documents/newmp3s. It has to follow the 3 steps in this order for each wav file before taking the next file. I tried a... (8 Replies)
Discussion started by: Kingzy
8 Replies

3. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

4. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

5. Shell Programming and Scripting

Conversion batch shell script

while converting batch file to shell script ...dis command is ther i dunno how to change...can anyone knws how to change into shell script rm !(D:\temp\XX.txt) (3 Replies)
Discussion started by: monisha
3 Replies

6. Shell Programming and Scripting

Need to run the batch script from shell scripting

Hi All, I am working on shell scripting.My script is completed but I have one task that is to trigger the batch script(with or without parameter) from my shell scripting(reside on linux system) and output which is geneareted by the batch should e.g. if batch script creates any files then I want... (5 Replies)
Discussion started by: anuragpgtgerman
5 Replies

7. UNIX for Dummies Questions & Answers

Script batch with command sed

hi, i have a folder with 2000 text file where each file contain a string. i need to trasform this string like this: example of file : My name is Mark and I'm a child the new file must be: insert into tabella ('My name','My name is Mark and I'm a child'); where the first column is a... (11 Replies)
Discussion started by: yo-yo78
11 Replies

8. Shell Programming and Scripting

Shell script from batch file

Hi, I am a junior dba and started carrier very new. I have a batch file to create some script of db creation. I want that batch file to convert in .sh file so that I can directly run that in the AIX box to generate those files. Please help me with the code for AIX. Batch file is here: ... (2 Replies)
Discussion started by: dba_aix
2 Replies

9. Shell Programming and Scripting

Batch script to execute shell script in UNIX server

Hi team, My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server. I have completed the first part i.e From windows to using to unix server with the help of psftp.exe code: psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 Replies

10. Shell Programming and Scripting

Batch to shell script conversion

Hi All, I have a small tool which is currently configured in batch scripts only. But my need is to run it on Linux platform, so I have been trying to convert a batch script to shell script. below is the batch script: @echo off IF "%1"== "" GOTO ARGERR REM UPDATE THESE PROPERTIES TO... (2 Replies)
Discussion started by: sukhdip
2 Replies
ECACCESS-QUEUE-LIST(1p) 				User Contributed Perl Documentation				   ECACCESS-QUEUE-LIST(1p)

NAME
ecaccess-queue-list - List available queues SYNOPSIS
ecaccess-queue-list -version|-help|-manual ecaccess-queue-list [-debug] [queue-name] DESCRIPTION
Two different types of queues are in use with ECaccess: 1 - The ECaccess batch queues, which correspond to one system at ECMWF with its specific batch environment, e.g. ecgate will be the ECaccess queue, which will redirect jobs to ecgate at ECMWF, running LoadLeveler. This ECaccess queue will be given as argument when submitting a batch job. 2 - The batch queues (or classes) on the systems at ECMWF will be given in the batch job with #@ class = for LoadLeveler. The names of the ECaccess queues and associated batch queues at ECMWF can be seen with this command. When an ECaccess queue-name is specified then the details for this queue are displayed (including the list of classes). The first ECaccess batch queue in the list is the default queue when submitting a batch job with the ecaccess-job-submit command. ARGUMENTS
queue-name (optional) The name of the ECaccess queue to retrieve the details. OPTIONS
-version Display version number and exits. -help Print a brief help message and exits. -manual Prints the manual page and exits. -debug Display the SOAP messages exchanged. EXAMPLES
ecaccess-queue-list List all the ECaccess batch queues (or systems supporting job submission at ECMWF). ecaccess-queue-list ecgate List all the batch queues (or classes) on the ECMWF system ecgate. SEE ALSO
ecaccess. perl v5.14.2 2012-04-16 ECACCESS-QUEUE-LIST(1p)
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy