Questions tagged [job-control]

69 questions
0
votes
1 answer

shell in c: only respond to SIGTSTP after pressing enter on keyboard

I'm trying to write a shell in c. Part of it is a handler to catch the SIGTSTP signal and set it to bringing programs in and out of foreground-only mode. Here are the relevant snippets of code: //global variables int global; //header void…
Aisha Ashwal
  • 83
  • 3
  • 11
0
votes
1 answer

PowerShell won't start job

I have the following PowerShell 5 program: $job = Start-Job -ScriptBlock {timeout.exe 10 /NOBREAK} Wait-Job $job When I run it, it terminates immediately with the following output: Id Name PSJobTypeName State HasMoreData …
user1804599
0
votes
1 answer

bash: cannot list backgrounded jobs when inside bash script

I want to see the backgrounded jobs when inside a bash script. Is this possible? To illustrate I run the command /usr/bin/experiment here but end up with no output. $ cat /usr/bin/experiment #!/bin/bash echo $(jobs) $ watch ls [1]+ Stopped …
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
0
votes
2 answers

Cannot kill stopped job - no job control in subprocess?

I'm working with ash/dash and try to kill a subprocess - which doesn't seem to respond: sh & opens a subprocess and jobs delivers [1]+ Stopped (tty Input) sh. But trying to kill this Job with kill %1 or kill 26672 doesn't work. jobs delivers [1]+…
deetee
  • 75
  • 1
  • 7
0
votes
1 answer

bash - bring background script foreground after parent dies

I'm writing script which will be run from removable media but requires this media to be unmount during execution. It can't just do it straght because medium is busy then. Thus I've split script into 2 parts - one running before unmount which is…
Lapsio
  • 6,384
  • 4
  • 20
  • 26
0
votes
4 answers

Does PHP have job control like bash does?

does PHP support something like ampersand in bash (forking)? Let's say I wanted to use cURL on 2 web pages concurrently, so script doesn't have to wait before first cURL command finnishes, how could one achieve that in PHP? Something like this in…
Gargauth
  • 2,495
  • 6
  • 27
  • 30
0
votes
3 answers

Hadoop jobcontrol

I am trying to run multiple Map/Reduce tasks in Hadoop. After searching on google, I went with method 2 as described at http://cloudcelebrity.wordpress.com/2012/03/30/how-to-chain-multiple-mapreduce-jobs-in-hadoop/ : use JobControl. I got the…
Thomas Hubregtsen
  • 449
  • 1
  • 5
  • 22
0
votes
2 answers

glassfish stops when i close putty window

I have Glassfish up and running on a Solaris machine. I am using putty to connect to that machine. I start the domain using asadmin start-domain I also have remote administration enabled. I am able to login to the admin portal at this time. The…
codeNinja
  • 1,442
  • 3
  • 25
  • 61
0
votes
1 answer

parallel execution of mapreduce jobs

I have a question. can I execute two or more jobs in hadoop concurrently with JobCntrol? I have 2 jobs that can be execute in parallel and other jobs have dependencies with these two jobs? How can I do that with JobControl? when I use it, it gives…
Anse danesh
  • 633
  • 3
  • 7
  • 17
1 2 3 4
5