01-22-2013
Quote:
Originally Posted by
spacebar
Ok, I see both jobs are running:How? Examples......
I don't understand, What exactly do you mean?
Does 'P1' not respond to communication from 'P2'?
Exaccly. P1 and P2 are not an interactive program. They comunicates with messages with TCP, but i think it is not the question. The problem is when P2 starts, it say "connection time out" becouse P1 doesnt respond.
I repeat, if i do manually with two terminals, the process P1 and P2 work correctly.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have a problem with turning a job into backgrund.
When i enter this at the shell:
spice -b darlington.cir -r output.raw > screenout.tmp &
and then let me show the currently running jobs, i get the following output:
+ Suspended (tty output) spice -b darlington.cir -r output.raw >... (4 Replies)
Discussion started by: qsi
4 Replies
2. Programming
Hi there,
I'm quite new to UNIX for programming. I have a script that does this:
Shows on screen real-time results taken from phone calls and logs them in a file.
However, when I start my script, I want my script to start logging in the file in the background, so I can continue working on... (1 Reply)
Discussion started by: Jeremiorama
1 Replies
3. Shell Programming and Scripting
i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help.
$cat run_job.ksh
#!/usr/bin/ksh
####################################
typeset -u SCHEMA_NAME=$1
... (1 Reply)
Discussion started by: GrepMe
1 Replies
4. UNIX for Advanced & Expert Users
Reposting, as it got lost during the database backup. :(
Via a shell script a spawn 3 background jobs namely a, b & c.
These will take different times to complete.
I want to print a different message on completion of each.
How can i find out when each one has completed independently.
... (19 Replies)
Discussion started by: vibhor_agarwali
19 Replies
5. UNIX for Dummies Questions & Answers
If I run a job in the background and logoff. Will the job continue to run or will my processes be killed ? (1 Reply)
Discussion started by: jxh461
1 Replies
6. Shell Programming and Scripting
Hi All,
I have some script that run some commands and send results to my email. I want to run same script on mulitiple servers. How can I do that. I know there is an option "ssh". But I'm not quite sure how to use it in the script.
And also. scripts has some parameters like following,
if :... (10 Replies)
Discussion started by: s_linux
10 Replies
7. Shell Programming and Scripting
We had a generic process where the jobs are scheduled to run sequentially and in background. We are noticing the problems with the background jobs.
Error Message:
/bin/ksh: /home/suren/bin/GenericReportScript.sh: cannot execute
The same script is existing in bin and it had enough... (2 Replies)
Discussion started by: sureng
2 Replies
8. Shell Programming and Scripting
Hi All,
Can someone help me in knowing the exact difference between nohup and &.
The definition is quite clear but i only want to know if i run my job using & and in between i hung up my terminal. (10 Replies)
Discussion started by: Uinx_addic
10 Replies
9. AIX
Hello,
Please advise use of screen in running jobs in nohup background and how to use this
Best regards,
Vishal (1 Reply)
Discussion started by: Vishal_dba
1 Replies
10. Shell Programming and Scripting
I have multiple jobs and each job dependent on other job.
Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE.
I need an help how to start.
Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies
LEARN ABOUT REDHAT
mod-active
MOD-ACTIVE(8) System Manager's Manual MOD-ACTIVE(8)
NAME
mod-active - batch processing of ctlinnd newgroup/rmgroup/changegroup
SYNOPSIS
mod-active [ ctlinnd_command_file ]
DESCRIPTION
mod-active is a perl script that updates the active file based on its input lines of ctlinnd newgroup, rmgroup and changegroup commands.
It pauses the server briefly while the existing active file is read and rewritten, which not only keeps innd from updating the active file
but also locks against other instances of mod-active.
The input to mod-active can come either from one or more files named on the command line, or from the standard input. Typically its input
is the output from the docheckgroups or actsync commands. Every line which contains the string "ctlinnd newgroup", "ctlinnd rmgroup" or
"ctlinnd changegroup", optionally preceded by whitespace and/or the path to ctlinnd, is noted for the update. Redundant commands, such as
a newgroup directive for a group that already exists, are silently ignored. All other lines in the input are also silently ignored.
After the new active file has been generated, the existing one is renamed to active.old and the new one is moved into place. The script
then displays the differences between the two files.
Any groups that were added to the active file are also added to the active.times file with the string "checkgroups-update".
BUGS
Though innd is paused while mod-active works, it is not inconceivable that there could be a conflict if something else tries to update the
active file during the relatively short time that mod-active is working. The two most realistic ways I can think of for this to happen are
either by an administrator concurrently doing a manual ctlinnd command, or by innd receiving a control message, then mod-active pausing the
server, then the control message handler script that innd forked running its own ctlinnd command while mod-active is working. I've been
using mod-active regularly for several years, though, and never had either problem.
HISTORY
Written by David C Lawrence <tale@isc.org>.
SEE ALSO
active(5), actsync(8), ctlinnd(8), innd(8).
MOD-ACTIVE(8)