03-21-2006
Submit Meastro script
The first entry in your script is:
#!/bin/bash ( for a bash shell ) or,
#!/usr/bin/ksh ( for a ksh - usual location.)
The first part of the script you are entering variables e.g.:
read =p "What job was modified today?: " job
echo $job # echos the Job entry
read -p "Is this correct Y/N?: " YN
echo $YN
yn=`echo $YN | tr [:lower:][:upper:]` # allows users to enter any CASE chars. converts to upper case ONLY!
read -p "Enter current Date: " dat
echo $dat # echos the date information just entered
Remainder of script processes the variables just entered.
So you now have a beginning point. Just add the variable processing
and the script will be complete!
Good luck!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I submitted a ksh script in the background last night before leaving work:
./ping_test &
When I came into work this morning I discovered that it had stopped running when my session timed out.
So, I then tried it again this morning and logged out before letting it time out as one unix site... (4 Replies)
Discussion started by: captainzeb
4 Replies
2. Shell Programming and Scripting
Hi all,
I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron.
So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies
3. Shell Programming and Scripting
Hi,
I have an existing cron job like the following.
15 5 * * * /appl/scripts/MyScript.sh 2>/dev/null >/dev/null
and this works just fine.
Now I had to modify the script and now it requires an input parm as 2.
I had modified the cron entry so that the script can run now with the... (12 Replies)
Discussion started by: bheemsen
12 Replies
4. Shell Programming and Scripting
Hi Folks...
I am using a ksh script to submit the at command to run a shell script for immediate execution. The shell script requries 1 parameter.
Command in the script is
at -m -f $EXE_DIR/process_server.sh $START_TIME $DB_NAME
where START_TIME=now and DB_NAME= tnsname of Oracle... (1 Reply)
Discussion started by: island360
1 Replies
5. Shell Programming and Scripting
I have a simple procedure which accepts two input parms and returns and output count:
CREATE OR REPLACE Procedure GET1 ( IN_FOLDER IN VARCHAR2,
IN_SUBJECT_AREA IN VARCHAR2,
OUT_CNT IN OUT VARCHAR2
)
AS
BEGIN
... (2 Replies)
Discussion started by: Hangman2
2 Replies
6. Shell Programming and Scripting
Hi,
I have to setup a process which will run every 30 minutes and perform a task. I have been looking into and considered to put a cron job in place which will automatically execute the process.
But lately I have found that Maestro job is also a process which will allow me to do the... (3 Replies)
Discussion started by: shanth_chandra
3 Replies
7. Shell Programming and Scripting
I am trying to get the string containing date - in a specfic format actually, although I think that part is inconsequencial - 1110226^1110226^1110226^1110226^1110226 - through echo or printf or in some other way - created within a cront job and passed as a parameter to a perl script.
Now, I know... (3 Replies)
Discussion started by: v8625
3 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to edit my working bash script to an SGE script in order to submit it as a job to the cluster.
Currently I have:
#!/bin/bash
# Perform fastqc on files in a specified directory.
for ((j=1; j <=17; j++))
do
directory=/data4/una/batch"$j"/
... (0 Replies)
Discussion started by: una1992
0 Replies
9. Shell Programming and Scripting
Hi All,
I'm new in forum.
Many congratulations to everyone for all work.
I'm not an expert in bash script
I've a problem with a sh file.
The sh file run every t minuts and it read data from txt file and then compile form.
Finally, the user, from the web browser click on send.
The script... (0 Replies)
Discussion started by: Herbert
0 Replies
10. Shell Programming and Scripting
Hello,
I'm working on a SGE cluster and trying to echo the variables passed to the qsub command.
My script is as follows
#!/bin/bash
#$ -V
#$ -cwd
#$ -pe make 10
if ; then
echo "Variable is not set"
else
echo "Variable says: $StatedUserName"
fi
and I run the... (1 Reply)
Discussion started by: nans
1 Replies
LEARN ABOUT DEBIAN
condor_qsub
CONDOR_QSUB(1) User Commands CONDOR_QSUB(1)
NAME
condor_qsub - minimalistic qsub emulation for Condor
SYNOPSIS
condor_qsub [OPTIONS] [<command> [<command_args>]]
DESCRIPTION
Minimalistic emulation of SGE's qsub for Condor.
The primary purpose of this emulation is to allow SGE-style submission of dependent jobs without the need to specify the full dependency
graph at submission time. This implementation is neither as efficient as Condor's DAGMan, nor as functional as SGE's qsub/qalter. It merely
serves as a minimal adaptor to be able to use software original written to interact with SGE in a Condor pool.
In general condor_qsub behaves just like qsub. However, only a fraction of the original functionality is available. The following list of
options only describes the differences in the behavior of SGE's qsub and this emulation. Qsub options not listed here are not supported.
OPTIONS
-b <y|n>
If 'y', command and arguments given on the command line are wrapped into a shell script which is then submitted to Condor.
--condor-keep-files
This is a non-SGE option. If given, it will prevent condor_qsub from deleting temporary files (generated submit files, sentinel
jobs). This is mostly useful for debugging.
-cwd
If given, this option will cause the 'initialdir' value in the Condor submit file to be set to the current directory.
-e <filename|path>
Name of the file to contain the STDERR output of the job. By default this will be job_name.ejob_id[.task_id]. If an existing direc-
tory is specified, the file will be placed inside this directory using the default schema for the filename.
-h,--help
Print usage summary and option list.
-hold_jid <jid>
If given, the job will be submitted in 'hold' state. Along with the actual job a 'sentinel' job will be submitted to Condor's local
universe. This sentinel watches the specified job and releases the submitted job whenever the job has completed. The sentinel
observes SGE's behavior to detect job exiting with code 100 and not start depedent job in this case. If a cluster id of an array job
is given the dependent job will only be released after all individual jobs of a cluster have completed.
-l <ressource spec>
This option is currently ignored.
-m <a|e|n><...>
SGE's notification labels will be translated (approximately) into Condor's notifications states (Never, Error, Complete).
-M <email>
Added as 'notify_user' to the submit file.
-N <jobname>
Determines the default name of logfile (stdout, stderr).
-o <filename|path>
See -e option, but for a job's stdout.
-p <int>
Added a 'priority' to the submit file.
-r <y|n>
This option is currently ignored.
-S <shell>
Path to a shell binary for script execution.
-shell <y|n>
This option is currently ignored.
-t <start>[-<stop>[:<step>]]
Task ID specification for array job submissions.
-q <queue name>
This option is permanently ignored, as Condor doesn't have multiple queues.
-V
If given, 'getenv = True' is added to the submit file.
--version
Print version information and exit.
This script is released under the Apache V2.0 License. It was written by Michael Hanke <michael.hanke@gmail.com>.
condor_qsub 0.1 September 2012 CONDOR_QSUB(1)