04-14-2010
Multiple jobs reading from same file
I have a sequence of tasks that I routinely run and I'm trying to parallelize certain portions of the sequence. Specifically, there are 3 tasks which all read from the same file, each performing different operations and writing to their own seperate file. I was wondering if I could execute these three steps at the same time.
Side note: I didn't write the code for these steps, so I can't just wrap them all up into one or anything like that.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How would I go about storing multiple file paths in a directory that begin like: 20080402*
and run a loop that reads each line of each file thats in a given directory. So far this is what I have:
#!/bin/ksh
echo "ENTER Reprint Date (YYYYMMDD): "
read ReprintDate
echo ""... (1 Reply)
Discussion started by: developncode
1 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
Hopw all is fine. I am newbie to Unix. I am using Bourne Shell (sh). One of the question I have is that I am trying to read XML file and based on reading that XML file I want to run different java programs at different hours. Meaning
05 14 * * * java ./program1
10 14 * * * java... (3 Replies)
Discussion started by: samshaw
3 Replies
3. Shell Programming and Scripting
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Discussion started by: bhargavkr
2 Replies
4. Shell Programming and Scripting
I have a file proc.txt:
if @debug = 1 then
message 'Start Processing ', @procname, dateformat(now(*), 'hh:mm:ss'), @julian type info to client;
end if;
/*
execute immediate with quotes
'insert into sys_suppdata (property, value, key_name)
location ''' || @supp_server || '.' ||... (5 Replies)
Discussion started by: kidncute
5 Replies
5. Shell Programming and Scripting
Hi
Am trying to print the PIDs of process in a file and trying to grep any PID from that file
I set the if condition as $value != "PID" and $value != "-"
Assign that number to a variable
Am confused since am using while loop to read the line from file
and again if condition to check those... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
6. Shell Programming and Scripting
I have a environment property file which contains:
Input file:
value1 = url1
value2 = url2
value3 = url3 and so on.
I need to search all *.xml files under directory for value1 and replace it with url1.
Same thing I have to do for all values mentioned in input file. I need script in unix bash... (7 Replies)
Discussion started by: Shamkamde
7 Replies
7. Shell Programming and Scripting
Hello
I'm making script for Dallas temperature sensors (DS1820).
When a sensor is connected, it shows up as a directory in /sys/bus/w1/devices
in format 10-xxxxxxx. Inside the directory is a file called w1_slave which holds the temperature in format t=xxxxx.
Each sensor has unique... (2 Replies)
Discussion started by: Klipeti
2 Replies
8. 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
9. Shell Programming and Scripting
Hello, I am new in shell scripting. I need help regarding following.
I have 4 files generated by backups daily. I have stored the names of these 4 files into one file. i.e I have 4 files names as a, b, c & d and these names have been put into one file abcd.txt.
Now I want to cat each file in... (7 Replies)
Discussion started by: Ali Sarwar
7 Replies
10. Shell Programming and Scripting
I have a txt file
line1
line2
line3
$!/bin/sh
cat /tmp/lus.txt | while read line
do
esxcli storage vmfs unmap -u $lin -n 4000
done
this works but does in one line at a time.
how do I do all lines at once simutaeously?
Please use CODE tags as required by forum rules! (4 Replies)
Discussion started by: tdubb123
4 Replies
LEARN ABOUT LINUX
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 packeges
--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-from waypoint
Start the debconf-apt-progress bar here.
--debconf-apt-to waypoint
End the debconf-apt-progress bar here.
--debconf-apt-progress options
Pass the specified options to the debconf-apt-progress command that tasksel runs. These will be appended to any --from and --to options
constructed by tasksel itself based on --debconf-apt-from and --debconf-apt-to options.
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
2.88ubuntu8 2010-07-16 TASKSEL(8)