Sponsored Content
Top Forums Shell Programming and Scripting read input file for batch job Post 62460 by RTM on Wednesday 16th of February 2005 08:30:33 AM
Old 02-16-2005
I don't understand - you stated in your other post about the exact same thing that you were going to use if statements - yet, you post the exact same question with no code. Either post the code you have been busy working on and questions about problems with it, or use the suggestions from the replies in your other post. Thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read the lines from the file in batch

Hi, I want to read lines in a loop. eg. In a file with 100 lines..first I want to read first 1 to 10 lines and redirect it to other file, then next 10 lines ( 11 to 20 ) and redirect it to the file ... .till end of file. I am not sure how to achieve this.Need help. (2 Replies)
Discussion started by: amitraorane
2 Replies

2. Windows & DOS: Issues & Discussions

windows scripting for a batch job

I have been doing unix scripting for quite awhile and there seems to be a wealth of information on it. Now I am working on migrating an intel based application to a new server. I need to modify some existing scripts, but am having trouble finding information on windows scripting, a forum similar... (2 Replies)
Discussion started by: MizzGail
2 Replies

3. UNIX for Dummies Questions & Answers

Regarding interactive ID of batch job

Hi all, We are running a batch job using Unix script. This batch job is running daily to get data from a Mainframe database and to load our tables. We are using an interactive ID for the batch job. If we removed that interactive ID, the batch job fails. What's my question is.. Is the... (1 Reply)
Discussion started by: pradeep.edara
1 Replies

4. Shell Programming and Scripting

A Batch job to delete files from various directories

Hi, I have a shell script to find files older than 'X' days ($2) in directory path ($1) and delete them. Like this: my_file_remover.sh /usr/home/c 90 Now, I need to modify this script and add it in CRON, so that it checks other directories also. Like: my_file_remover.sh /usr/home/c... (3 Replies)
Discussion started by: guruparan18
3 Replies

5. UNIX for Dummies Questions & Answers

read input file

echo "enter employee #:/c" read employee grep -w $employee /tmp/file.txt when it asked me employee #, i typed employee, worked fine. when it asked me employee #, i type ENTER, it just sit there. if someone type in NULL or ENTER key, i want to exit out. (2 Replies)
Discussion started by: tjmannonline
2 Replies

6. UNIX for Dummies Questions & Answers

How to create a batch job ?

Hi In unix how to create a batch job and Is there any command to close file in unix. Please help me I am new to unix world (6 Replies)
Discussion started by: vinay.h4
6 Replies

7. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

8. Solaris

Can a batch job truly have a PID of 1?

Is it possible for a process id of 1. Is there anything special about 1 or 8 ? (7 Replies)
Discussion started by: Harleyrci
7 Replies

9. Windows & DOS: Issues & Discussions

To run job in parallel in batch

Hi, I am using a batch file to run 2 or more shutdown batch for each of my server like below: Shutdown_serverA.bat Shutdown_serverB.bat ... Is there anyway i can do this in parallel instead of serially:confused: ServerA & ServerB shutdown at the same time in one click (batch). (4 Replies)
Discussion started by: beginningDBA
4 Replies

10. Shell Programming and Scripting

Read input files and merge them in given order and write them to input one param or one file

Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
ECACCESS-JOB-SUBMIT(1p) 				User Contributed Perl Documentation				   ECACCESS-JOB-SUBMIT(1p)

NAME
ecaccess-job-submit - Submit a new ECaccess Job SYNOPSIS
ecaccess-job-submit -version|-help|-manual ecaccess-job-submit [-debug] [-distant] [-encrypt] [-bufsize length] [-scheduledDate date] [-noDirectives] [-gateway name] [-remote location] [-transferOutput] [-transferError] [-transferInput] [-keep] [-eventIds list] [-sterr2Stdout] [-noRenew] [-mailTo email] [-onStart] [-onSuccess] [-onFailure] [-onRetry] [-jobName name] [-manPage content] [-lifeTime days] [-retryCount number] [-retryFrequency frequency] [-queueName name] source DESCRIPTION
Allow submitting the source script on either the default ECaccess batch queue or the ECaccess batch queue specified with the -queueName option. ECaccess batch queue name can be obtained with the ecaccess-queue-list command (the default queue is the first in the list). A special service (see option -eventIds) allows to automatically submit jobs to be run when certain points in the daily ECMWF operational forecast suite have been reached. The main purpose is to ensure that certain data is available before e.g. submitting a MARS request. These events correspond to the different stages when the ECMWF operational activity has produced certain data or products. The list of events can be retrieved with the ecaccess-event-list command. In order to facilitate the migration from the old ECtools (ecjreq/ecjput commands) the equivalents options can be set using their old names (e.g. -at for -scheduledDate). This should limit the scripts modifications for job submissions. ARGUMENTS
source The name of the file which contains the job input script (depending of the -distant option this file is either at ECMWF or local to your workstation). OPTIONS
-distant By default the source is specifying a file which is local to your workstation. Using this option allow submitting a script which is already at ECMWF. -encrypt By default the source file is uploaded through the plain text channel (http). Using this option will force the upload to occurs through the SSL secure channel (https). This option only apply for local scripts (no -distant). -bufsize length Specify the length of the buffer (in bytes) which is used to upload the file. The larger the buffer the smaller the number of http/s requests. By default a buffer of 524288 bytes(512KB) is used. This option only apply for local scripts (no -distant). -at, -scheduledDate date Allow specifying the start date for the Job. By default the job will start as soon as possible. The format for the date is 'yyyy-MM-dd HH:mm'. -nd, -noDirectives Allow submitting a job with no scheduler directives. Some default directives will be added to your input script to allow processing the job. -tg, -gateway name This is the name of the target ECaccess Gateway for the transfers. It is by default the Gateway you are connected to. In order to get the name of your current Gateway you can use the ecaccess-gateway-name command. When using the commands at ECMWF the default Gateway is always "ecaccess.ecmwf.int". -tr, -remote location Defines the target ECtrans location in the format association-name[@protocol]. -to, -transferOutput Request the transfer of the job standard output to the gateway and remote location defined in the -gateway and -remote options. -te, -transferError Request the transfer of the job error output to the gateway and remote location defined in the -gateway and -remote options. -ti, -transferInput Request the transfer of the job input to the gateway and remote location defined in the -gateway and -remote options. -tk, -keep Allow keeping the transfers requests in the spool. -ni, -eventIds list Allow giving a list of event-identifiers to subscribe to with the Job. The list should be separated by ';' or ','. -eo, -sterr2Stdout Force redirection of the job standard error output (stderr) to the job standard output (stdout). -ro, -noRenew The job subscriptions to events will not be renewed. -mu, -mailTo email Defines the target email address (default: current ECMWF user identifier). -mb, -onStart Allow sending a mail when the execution/transfer begins. -me, -onSuccess Allow sending a mail when the execution/transfer ends. -mf, -onFailure Allow sending a mail when the execution/transfer fails. -mr, -onRetry Allow sending a mail when the execution/transfer retries. -queueName name The name of the ECaccess batch queue to submit the job to. -jn, -jobName name Allow specifying a name for the new Job (other than the Job Identifier). -mp, -manPage content Allow giving the man page content which will be displayed to the ECMWF operators in case of problems with your Job (e.g. what to do or who to contact). -lt, -lifeTime days Allow specifying the job input/output life time in days. The default is 7 days. -rc, -retryCount number Defines the number of retries. The default is 0. -rf, -retryFrequency frequency Defines the frequency of retries in seconds. The default is 600 seconds. -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-job-submit -noDirectives ./test.txt Transfer the local file test.txt to your ECMWF spool and submit the job to the default ECaccess batch queue. The source does not have any directives. SEE ALSO
ecaccess-queue-list, ecaccess-event-list, ecaccess-job-delete, ecaccess-job-get, ecaccess-job-list ecaccess-job-restart and ecaccess. perl v5.14.2 2012-04-16 ECACCESS-JOB-SUBMIT(1p)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy