Sponsored Content
Full Discussion: Trouble looping commands
Top Forums UNIX for Beginners Questions & Answers Trouble looping commands Post 303019365 by tim.morris on Thursday 28th of June 2018 05:18:06 AM
Old 06-28-2018
Amazing, this is great! Thank you so much for your help, I really appreciate it
 

10 More Discussions You Might Find Interesting

1. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

2. Shell Programming and Scripting

help with looping

vesselNames values: xxx yyy zzz vesselPlanned values: xxx zzz zzz zzz OIFS="" OIFS=$IFS IFS="\n" (2 Replies)
Discussion started by: finalight
2 Replies

3. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

4. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

5. Shell Programming and Scripting

trouble looping in script

I am having problem looping this script I want to give the user option to decide if they want to continue after each entry but then also loop it back to beginning so they can more to content of there testcase they just created. I fam new to scripting so loops are little tricky for me. code I... (7 Replies)
Discussion started by: andrew.p.mcderm
7 Replies

6. Shell Programming and Scripting

Trouble executing piped shell commands in perl code

I am trying to execute a piped combination of shell commands inside a perl program. However, it is not working as desired. This is my program, i am trying to print only filenames from the output of ls -l $ cat list_test #!/usr/bin/perl -w use strict; my $count=0; my @list=`ls -l|awk... (4 Replies)
Discussion started by: sam05121988
4 Replies

7. UNIX for Dummies Questions & Answers

Ps commands trouble

Hi, i am writing a bash file and need to list the command name and user for the busiest process ie the one using the greatest percentage of CPU time) im kind of stuck. i know you should get the highest CPU , sort column 3 then take off the head but i'm un sure how would i do that? echo... (2 Replies)
Discussion started by: ryoukii
2 Replies

8. Shell Programming and Scripting

Trouble passing commands with expect

Hello All, I hope someone could help me with this. I'm creating a shell script to run a process. The trouble is, part of the process has to be ran as a different user. I can 'su' to the user ok, but I'm having trouble passing a 'cd' command as well as some variables I set earlier in the... (1 Reply)
Discussion started by: bbbngowc
1 Replies

9. Shell Programming and Scripting

Trouble using awk and sed commands

Hi i have a control file which i need to read. It is ',' separated. the 3rd parameter will be ';' separated. I have 2 files: /home/orig.txt /home/join.txt I need a O/P file name based on firstparameter_1.txt and it should have the content of /home/orig.txt and appended content from... (2 Replies)
Discussion started by: Ravindra Swan
2 Replies

10. Shell Programming and Scripting

Looping

Hey guys, so I am trying to do a loop script that will go through each folder (no gui so just each domain has a folder) and grab out the databases being used on that domain. I know I would use mysql -e "show databases where not 'information_schema';" once in each directory to pull the actual... (3 Replies)
Discussion started by: dough
3 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 01:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy