How to set the SGE job execution order for nested qsub?
Dear All
I am trying to write a script to set the SGE job execution order. I named each job with 'job1', 'job2' and 'job3'. I want my script to do: When 'job1' execution is complete, 'job2' is executed; when both 'job1' and 'job2' are complete, 'job3' is executed.
First, I tried this following script and it worked well:
Then, I changed "run1.sh" to
it is just a nested qsub
I re-ran
and job1 and job2 were submitted but I also got this error message:
My question is, how to deal with this kinda of nested qsub?
All your help will be greatly appreciated.
Last edited by Yogesh Sawant; 06-23-2010 at 07:08 AM..
Reason: added code tags
Hi all. I am having an issue and I'm not sure if anyone here would know the answer but I thought I'd ask anyway.
The problem is with ServiceGuard where the control file lists the file systems to mount in a sequential order but ServiceGuard is mounting them as it feels like it. This is especially... (3 Replies)
Hi all:
I have a problem with a C++ service runing on solaris 10. This service only set a signal on oracle table. When the service detect a cut off on the line (tcp/ip), trigger a cobol program for set the signal OFF. When the line is on again, the service trigger the same cobol program for set... (0 Replies)
Hello. Hopefully this is the right forum, did a search and found some similar questions here.
I'm trying to find out if there is a way to get the job id while submitting a job using qsub. I want to monitor the list of active jobs using qstat and when my jobid is no longer on the active list, I... (3 Replies)
Hello,
I'm quite new to perl so my question is rather basic and I know there is probably a simple way around it but I can't seem to find it.
I have a medium-length code and there is a part that works with a nested for loop:
foreach my $j(@primpiddelta){
for (my $k=1;... (0 Replies)
55,0 5,6 * * * myScript
This cron task will execute on 5:00AM, 5:55AM, 6:00AM and 6:55AM.
Is there any possibility to make it run only in the order specified
such as 5:55AM and 6:00AM (basically only on the 2 intervals) ? (1 Reply)
Hello
I am seeing a weird behavior during the execution of the shell program.
The shell programs loops through a file which has a list of files. for each file the programs cats the file, pipes the output to sed command and then on to an awk program. But while execution, the order of... (3 Replies)
Hi,
I have two scripts which are mentioned in execute.sh
more execute.sh
./script1.sh //line 1 should not return error
./script2.sh //line 2 may return error
./script2.sh //line 3 should not return error
Condition: I want script1.sh to complete before starting script2.sh... (1 Reply)
Hi all,
Here is a portion of my script test.sh:
#!/bin/bash
tar -cf $name.tar $name && pbzip2 $name.tar
2-Sending .tar.bz2 to destination node
Please, i have a question. The execution of the second instruction is done, but i do not see the result of pbzip2
I have to send this... (2 Replies)
Linux Server
Hi!
just some help...
I'm using a "Sun Grid Engine" with "qsub"
In one hand I have this code
while read -r H; do echo ${H}; done < list
The number of the lines in the list file is 100.
On the other hand I want to create a job array with the option -t
echo... (3 Replies)
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 LINUX
pam_filter
PAM_FILTER(8) Linux-PAM Manual PAM_FILTER(8)NAME
pam_filter - PAM filter module
SYNOPSIS
pam_filter.so [debug] [new_term] [non_term] run1|run2 filter [...]
DESCRIPTION
This module is intended to be a platform for providing access to all of the input/output that passes between the user and the application.
It is only suitable for tty-based and (stdin/stdout) applications.
To function this module requires filters to be installed on the system. The single filter provided with the module simply transposes upper
and lower case letters in the input and output streams. (This can be very annoying and is not kind to termcap based editors).
Each component of the module has the potential to invoke the desired filter. The filter is always execv(2) with the privilege of the
calling application and not that of the user. For this reason it cannot usually be killed by the user without closing their session.
OPTIONS
debug
Print debug information.
new_term
The default action of the filter is to set the PAM_TTY item to indicate the terminal that the user is using to connect to the
application. This argument indicates that the filter should set PAM_TTY to the filtered pseudo-terminal.
non_term
don't try to set the PAM_TTY item.
runX
In order that the module can invoke a filter it should know when to invoke it. This argument is required to tell the filter when to do
this.
Permitted values for X are 1 and 2. These indicate the precise time that the filter is to be run. To understand this concept it will be
useful to have read the pam(3) manual page. Basically, for each management group there are up to two ways of calling the module's
functions. In the case of the authentication and session components there are actually two separate functions. For the case of
authentication, these functions are pam_authenticate(3) and pam_setcred(3), here run1 means run the filter from the pam_authenticate
function and run2 means run the filter from pam_setcred. In the case of the session modules, run1 implies that the filter is invoked at
the pam_open_session(3) stage, and run2 for pam_close_session(3).
For the case of the account component. Either run1 or run2 may be used.
For the case of the password component, run1 is used to indicate that the filter is run on the first occasion of pam_chauthtok(3) (the
PAM_PRELIM_CHECK phase) and run2 is used to indicate that the filter is run on the second occasion (the PAM_UPDATE_AUTHTOK phase).
filter
The full pathname of the filter to be run and any command line arguments that the filter might expect.
MODULE TYPES PROVIDED
All module types (auth, account, password and session) are provided.
RETURN VALUES
PAM_SUCCESS
The new filter was set successfully.
PAM_ABORT
Critical error, immediate abort.
EXAMPLES
Add the following line to /etc/pam.d/login to see how to configure login to transpose upper and lower case letters once the user has logged
in:
session required pam_filter.so run1 /lib/security/pam_filter/upperLOWER
SEE ALSO pam.conf(5), pam.d(5), pam(7)AUTHOR
pam_filter was written by Andrew G. Morgan <morgan@kernel.org>.
Linux-PAM Manual 06/04/2011 PAM_FILTER(8)