I am trying to use a loop to start tasks 0-3, running 0,1,2 in the background with &.
I am truing to append & to the first three task (0,1,2), but not have & after the 4th. This will pause the script after task 4 and wait for it to finish before moving on. This is not working. I have tried & with and without the quotes with no difference. The code starts a four tasks, but in sequence instead of simultaneously.
Any suggestions, or am I going about this all wrong.
LMHmedchem
Last edited by LMHmedchem; 03-24-2011 at 09:48 PM..
file 005:
trap 'echo "\nInterrupcion recibida.Saliendo\n\n" ; exit 0 ' 2 9 15
while true
do
./005.aux &
done
005.aux:
trap 'exit 0' 2 9 15
sleep 30
exit 0
The error ocurrs if i try to execute 005.aux in background. How could i resolve it? Thanks :cool: (7 Replies)
I thought I was getting pretty good with Bash but this problem is stumping me. Any suggestions would be greatly appreciated. I've written a firewall script that uses a lot of functions. The variables are read into the script from another .conf file earlier on in the code. Most of these... (2 Replies)
I have script 3 scripts 1 parent (p1) and 2 children child1 and child2
I have script 3 scripts
1 parent
2 children
child1
child2
In the code below the 2 child processes fire almost Instantaneously in
the background, Is that possible to know the status of pass/fail of each
process... (12 Replies)
Guys,
can you help me in killing the process which is running in back ground under for loop
I am not able to find the PID using ps -afx|grep <word in command I entered> (1 Reply)
Hi,
I have a requirement where I want to submit appx 100 jobs based on the files received. Assume today I received source file for 50 jobs, then I have submit a common script at 50 times.
This common script will take appx 1-2 mins to finish. I can' complete my parent script untill all the... (1 Reply)
I am in the process of updating a folder of hundreds of recipe html files. I've already managed to modify a number of things in each file but I have run into something that's beyond my ability.
I have a text file that I need to insert the contents into the html at a specific point. It creates... (0 Replies)
Hi am new to unix ,
when the background task is running how to put entry in the table and also if there is any issue how to stop the running task.
can anyone help me... (1 Reply)
Hello Everyone,
I am writing a shell script to fetch log files from remote servers within a time range. It copies log files to local server, grep for date and then compares the time stamp of each log entry with the once specified.
Below is the code.
# Get log and Parsing function
... (1 Reply)
Hello,
im having bash script with
while ***
command1 &&
command2 &&
command3 &&
done
i want to ask how i can prevent overloading server, by waiting untill all commands complete? any low resources intensive command like "wait" - i dont know if exist? (2 Replies)
Discussion started by: postcd
2 Replies
LEARN ABOUT DEBIAN
tasksel
TASKSEL(8) Debian specific manpage TASKSEL(8)NAME
tasksel - a user interface for installing tasks
SYNOPSIS
tasksel install <task>
tasksel remove <task>
tasksel [options]
DESCRIPTION
tasksel shows all available tasks and allows to user to select ones to install
OPTIONS -t, --test
test mode; don't actually install or remove packages
--new-install
automatically select some tasks without even displaying them to the user; default other tasks to on; used during new Debian installs.
--list-tasks
list on stdout the tasks that would be displayed in the tasksel interface
--task-packages task
lists on stdout the packages that are available and part of the given task
Note that this option may be given more than once.
--task-desc task
outputs the extended description of the given task
--debconf-apt-progress options
Pass the specified options to the debconf-apt-progress command that tasksel runs.
SEE ALSO dpkg(8), apt-get(8)FILES
/usr/share/tasksel/*.desc and /usr/local/share/tasksel/*.desc are used to define tasks.
AUTHOR
tasksel was written by Randolph Chung <tausq@debian.org> and Joey Hess <joeyh@debian.org>
HISTORY
This document first appeared with tasksel-1.0
3.14.1 2012-08-27 TASKSEL(8)