10 More Discussions You Might Find Interesting
1. Programming
I have an input file with contents like:
5785690|68690|898809
7960789|89709|789789
7669900|87865|659708
7869098|65769|347658
so on..
I need to pass this file to 10 parallely running processes (forking)so that each line is processed by a process and no line is processed twice and write the... (1 Reply)
Discussion started by: rkrish
1 Replies
2. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
3. Shell Programming and Scripting
Hi guys. Hopefully this question will make sense!
Continuing on my script to automatically copy some huge files across the network onto various servers as background jobs, I need to be able to check that each job has finished successfully.
The script below shows what I want - almost. The... (2 Replies)
Discussion started by: dlam
2 Replies
4. Shell Programming and Scripting
I have a bash script that has been used for months here at work for doing an SSH into other machines both Linux and Solaris and running a script on the remote machine. Recently I have started to noticed that things are being left being on the maching doing the SSH.
For example....
tivoli ... (1 Reply)
Discussion started by: LRoberts
1 Replies
5. Shell Programming and Scripting
Hi,
We are doing migration from DB2 to Teradata.
There are couple of things involving in the project.
Please see below following order
Autosys-Jil script
Profile script
Category1
Teradata script
Data stage job script
Tera data script
Export files script..
Like that we have 10000... (1 Reply)
Discussion started by: onesuri
1 Replies
6. UNIX for Advanced & Expert Users
hi,
I want my program to fork a new process and then I want to kill the parent process. The parent program before dying will issue a SIGTERM to all its childs. Which eventually kills all Children.
I cant handle the SIGTERM at the child level.:(
What I was thinking of was the Parent... (3 Replies)
Discussion started by: tyler_durden
3 Replies
7. UNIX for Advanced & Expert Users
hi,
I thought that when a child shell is forked, it will inherit all the variables of the parent
now in my .cshrc I have
setenv X x
then I do at command line
setenv X y
and X is now y. So far so good!
I then have a very simple script, y.csh
#!/usr/bin/csh
echo X (7 Replies)
Discussion started by: JamesByars
7 Replies
8. Programming
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
pid_t pID;
int i;
for (i = 0; i < 3; i++)
{
pID = fork ();
if (pID == 0)
{
printf ("Value of i --> %d... (2 Replies)
Discussion started by: kymthasneem
2 Replies
9. Programming
Hi
I'm currently working with C on UNIX (HPUX) and need to be able to fork a seperate Java process from within a running C process.
I can run the following code from the command line via a script but am having difficulty getting it to work from within the code.
I am trying to use execl. Is... (4 Replies)
Discussion started by: themezzaman
4 Replies
10. UNIX for Advanced & Expert Users
When I compile this C programme I get different outputs each time I run it
Please explain to me whats happening in the code if you can give me a detailed explanation with the schedular functionality it will help a lot. Because I am stuck with this.
#include <stdio.h>
main(){... (3 Replies)
Discussion started by: manjuWicky
3 Replies
EVCHILD(3) 1 EVCHILD(3)
The EvChild class
INTRODUCTION
EvChild watchers trigger when the process receives a SIGCHLD in response to some child status changes (most typically when a child dies or
exits). It is permissible to install an EvChild watcher after the child has been forked(which implies it might have already exited), as
long as the event loop isn't entered(or is continued from a watcher), i.e. forking and then immediately registering a watcher for the child
is fine, but forking and registering a watcher a few event loop iterations later or in the next callback invocation is not.
It is allowed to register EvChild watchers in the default loop only.
CLASS SYNOPSIS
EvChild
EvChildextends
EvWatcher
Properties
o public$pid
o public$rpid
o public$rstatus
Inherited properties
o public$is_active
o public$data
o public$is_pending
o public$priority
Methods
o public EvChild::__construct NULL (int $pid, bool $trace, callable $callback, [mixed $data], [int $priority])
o finalpublicstatic object EvChild::createStopped (int $pid, bool $trace, callable $callback, [mixed $data], [int $priority])
o public void EvChild::set (int $pid, bool $trace)
Inherited methods
o public int EvWatcher::clear (void )
o abstractpublic EvWatcher::__construct (void )
o public void EvWatcher::feed (int $revents)
o public EvLoop EvWatcher::getLoop (void )
o public void EvWatcher::invoke (int $revents)
o public bool EvWatcher::keepalive ([bool $value])
o public void EvWatcher::setCallback (callable $callback)
o public void EvWatcher::start (void )
o public void EvWatcher::stop (void )
PROPERTIES
o $pid
- Readonly . The process ID this watcher watches out for, or 0 , meaning any process ID.
o $rpid
- Readonly .The process ID that detected a status change.
o $rstatus
- Readonly . The process exit status caused by $rpid .
PHP Documentation Group EVCHILD(3)