05-10-2013
If you don't like MadeInGermany's proposal, here's two thoughts you may want to consider:
1) split test1.sh in at least two parts - one that does the task you wait for (e.g. write "complete") , and the other to do the rest.
2) have test1.sh write a file, or better, a named pipe when it completes the task you wait for.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all ( again )
I will like to search and replace string in text file
ok I can loop throw the files like :
foreach f ( ` find . -name "*."`)
.. but here I like to examine the file if in contain the desired string
and so do the sed -e 's/blah/foo/g' thingy on it or there is better way... (1 Reply)
Discussion started by: umen
1 Replies
2. UNIX for Advanced & Expert Users
Hey Guyz I have a requirement something like this..
a part of file name, date of modification of that file and a text is entered as input.
like
Date : 080206 (MMDDYY format.)
filename : hotel_rates
text : Jim
now the file hotel_rates.ZZZ.123 (creation date is Aug 02 2006) should be... (10 Replies)
Discussion started by: rosh0623
10 Replies
3. Shell Programming and Scripting
Hi All,
This is the first time I have posted to this forum so please bear with me. Thanks also advance for any help or guidance.
For a project I need to do the following.
1. There are multiple files in multiple locations so I need to find them and the location. So I had planned to use... (9 Replies)
Discussion started by: Charlie6742
9 Replies
4. UNIX for Advanced & Expert Users
Using grep -r -H "foobar" / > result to give
all files that contain the string "foobar"
Half way , its waiting for some thing and does not end
Not Sure whats happening.
Any help is much appreciated
Thank you (2 Replies)
Discussion started by: shorn
2 Replies
5. Shell Programming and Scripting
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies
6. Shell Programming and Scripting
Dear Unix Forum Group Members,
Please do let me know how I can replace the double pipe with single pipe recursively on single record.
Sample Input Data:
DN set|Call prefix||| Called number address nature
0||| *789|||||||ALL number types
0||| 00||||||||ALL number types
10||... (5 Replies)
Discussion started by: srinu.kadem
5 Replies
7. Windows & DOS: Issues & Discussions
I am trying to have the below batch file do following two things:
1. only allow the values YES,yes,Y,y, or NO,no,N,n
2. increment the counter %var1 only if answer to question 2 is "y" and not able to get the syntax correct. If %var1%=1 then I am trying to display function :end. Thank you :).... (0 Replies)
Discussion started by: cmccabe
0 Replies
8. UNIX for Dummies Questions & Answers
I am using a perl script to reverse and complement sequences if a string is found. The script works as expected as standalone but I would like to use it in my bash file. However, I am not getting my expected result.
My test.txt file
>Sample_72... (8 Replies)
Discussion started by: Xterra
8 Replies
9. UNIX for Beginners Questions & Answers
Hello,
Opearting System Environment : HP Unix B.11.31 U
I look for script to
On specific folders list
On specific filelist
Search for given string
For Example :
r48_buildlib.txt contains
wpr480.0_20161027
wpr480.0_20161114
wpr481.0_20161208
wpr482.0_20161222... (4 Replies)
Discussion started by: Siva SQL
4 Replies
10. UNIX for Beginners Questions & Answers
OS: window 7
shell : korn shell
I have 2 file , i'm need grep data according File_1 from file 2.
File_1
CAL_ENAB_N_4_
$2N12743_29
+12V
File_2
NODE CAL_ENAB_N_4_
PINS
21548;
PROBES
P1465 3651, 46900 tn2700.1 LWT;
WIRES (6 Replies)
Discussion started by: kttan
6 Replies
LEARN ABOUT REDHAT
pvm_reg_tasker
REG_TASKER(3PVM) PVM Version 3.4 REG_TASKER(3PVM)
NAME
pvm_reg_tasker - Register task as PVM task starter.
SYNOPSIS
C #include <pvmsdpro.h>
int cc = pvm_reg_tasker()
Fortran Not Available
DESCRIPTION
Registers the calling task as a PVM task starter. When a tasker is registered with a pvmd, and the pvmd receives a DM_EXEC message,
instead of fork()ing and exec()ing the task itself, it passes a message to the tasker, which does the dirty work and sends a message back
to the pvmd.
Note: If this doesn't make sense, don't worry about it. This function is for folks who are writing stuff like debugger servers and so on.
For a more complete explanation of what's going on here, you should refer to the PVM source code and/or user guide section on implementa-
tion; this is only a man page. That said...
When the pvmd receives a DM_EXEC message (request to exec new tasks), it searches epath (the PVM executable search path) for the file name.
If it finds the file, it then either attempts to start the processes (using fork() and exec()) or, if a tasker has registered, sends it a
SM_STTASK message.
The format of the SM_STTASK message is:
int tid // of task
int flags // as passed to spawn()
string path // absolute path of the executable
int argc // number of args to process
string argv[argc] // args
int nenv // number of envars to pass to task
string env[nenv] // environment strings
The tasker must attempt to start the process when it gets one of these messages. The tasker doesn't reply to the pvmd if the task is suc-
cessfully started; the task will reconnect to the pvmd on its own, using the cookie in envar PVMEPID to identify itself to the pvmd.
The tasker must send a SM_TASKX message to the pvmd when any task that it owns (has started) exits, or if it can't start a particular task.
The format of the SM_TASKX message is:
int tid // of task
int status // the Unix exit status (from wait())
int u_sec // user time used by the task, seconds
int u_usec // microseconds
int s_sec // system time used by the task, seconds
int s_usec // microseconds
The tasker task must use pvm_setopt(PvmResvTids, 1) to allow sending reserved messages. Messages should be packed using encoding Pvm-
DataDefault to ensure they can be unpacked anywhere in the system.
pvm_reg_tasker() returns PvmOk when successful.
SEE ALSO
pvm_spawn(3PVM), pvm_tasks(3PVM),
16 March, 1994 REG_TASKER(3PVM)