Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 2000 14:03:46 -0400
From:      "krishna vallapareddy" <kvallapareddy@appworx.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   statuses of background jobs in shell scripts
Message-ID:  <00d801c02bd1$f18b4790$7ac9010a@kvalpareddy_lp.appworx.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_00D9_01C02BB0.6A79A790
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_00DA_01C02BB0.6A7CB4D0"


------=_NextPart_001_00DA_01C02BB0.6A7CB4D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
  I would like to know how I can redirect the 'Done x'
messages that you would get if a job were submitted at
the command line to a file. Also, this does not happen
when the job is submitted  in a shell script.
    My problem is, I need to submit a lot of jobs in the
background in a loop based on a counter that I increment using expr command.
After that I need to
track the statuses of each of these jobs. If the job has
not finished, I could use the wait command but how do I
get the statuses of the jobs that have already finished?

   Any help in this regard is highly appreciated.

_________APPWORX__________________________
Krishna Vallapareddy
Systems Engineer
AppWorx Corporation
Phone: 301.987.0000  - Fax: 301.987.7225                 Cell: 516-449-5009
E-mail: krishnav@appworx.com
http://www.appworx.com


------=_NextPart_001_00DA_01C02BB0.6A7CB4D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<STYLE>BODY {
	BACKGROUND-REPEAT: repeat-y; COLOR: #000000; FONT-FAMILY: MS Sans =
Serif, "sans serif"; FONT-SIZE: 12pt; MARGIN-LEFT: 50px
}
HR {
	COLOR: #00ffff; HEIGHT: 1px; WIDTH: 100%
}
</STYLE>

<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY background=3Dcid:123105817@01102000-1f71 bgColor=3D#ffffff>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>&nbsp; I would like to know how I can =
redirect the=20
'Done x'</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>messages that you would get if a job =
were submitted=20
at</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>the command line to a file. Also, this =
does not=20
happen</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>when the job is submitted&nbsp; in a =
shell=20
script.</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>&nbsp;&nbsp;&nbsp; My problem is, I need =
to submit a=20
lot of jobs in the</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>background in a loop based on a counter =
that I=20
increment using expr command. After that I need to</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>track the statuses of each of these =
jobs. If the job=20
has</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>not finished, I could use the wait =
command but how=20
do I</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN><SPAN class=3D123105817-01102000><FONT =
color=3D#000000=20
face=3D"MS Sans Serif" size=3D3>get the statuses of the jobs that have =
already=20
finished?</FONT></SPAN></DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D123105817-01102000><FONT color=3D#000000 face=3D"MS =
Sans Serif"=20
size=3D3>&nbsp;&nbsp; Any help in this regard is highly=20
appreciated.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV><FONT color=3D#ff0000 face=3DArial size=3D2>
<P>_________APPWORX__________________________</FONT><FONT face=3DArial=20
size=3D2><BR>Krishna Vallapareddy<BR>Systems Engineer<BR>AppWorx=20
Corporation<BR>Phone: 301.987.0000&nbsp; - Fax:=20
301.987.7225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Cell: 516-449-5009<BR>E-mail: krishnav@appworx.com<BR></FONT><A=20
href=3D"http://www.appworx.com/"><FONT face=3DArial=20
size=3D2>http://www.appworx.com</FONT></A></P></BODY></HTML>;

------=_NextPart_001_00DA_01C02BB0.6A7CB4D0--

------=_NextPart_000_00D9_01C02BB0.6A79A790
Content-Type: image/jpeg;
	name="Notebook.jpg"
Content-Transfer-Encoding: base64
Content-ID: <123105817@01102000-1f71>

/9j/4AAQSkZJRgABAgEASABIAAD/7QSyUGhvdG9zaG9wIDMuMAA4QklNA+kAAAAAAHgAAwAAAEgA
SAAAAAADBgJS//f/9wMPAlsDRwUoA/wAAgAAAEgASAAAAAAC2AIoAAEAAABkAAAAAQADAwMAAAAB
Jw8AAQABAAAAAAAAAAAAAAAAYAgAGQGQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4
QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQPzAAAAAAAIAAAAAAAAAAA4QklNBAoAAAAA
AAEAADhCSU0nEAAAAAAACgABAAAAAAAAAAI4QklNA/UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEA
L2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklN
A/gAAAAAAHAAAP////////////////////////////8D6AAAAAD/////////////////////////
////A+gAAAAA/////////////////////////////wPoAAAAAP//////////////////////////
//8D6AAAOEJJTQQAAAAAAAACAAA4QklNBAIAAAAAAAIAADhCSU0ECAAAAAAAEAAAAAEAAAJAAAAC
QAAAAAA4QklNBAkAAAAAAqIAAAABAAAAgAAAAAIAAAGAAAADAAAAAoYAGAAB/9j/4AAQSkZJRgAB
AgEASABIAAD//gAnRmlsZSB3cml0dGVuIGJ5IEFkb2JlIFBob3Rvc2hvcKggNC4wAP/uAA5BZG9i
ZQBkgAAAAAH/2wCEAAwICAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwM
DAwMDAwMDAwMDAwMDAwMDAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwR
DAwMDAwMDAwMDAwMDA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K+k1uDQPUsILyONPotZ/JatRfKq
SSX6qSXyqkip+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJ
KfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp
+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6
qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqp
JfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl
8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXy
qkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKq
SSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJ
KfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp
+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn6
qSXyqkkp+qkl8qpJKfqpJfKqSSn6qSXyqkkp+qkl8qpJKfqpJfKqSSn/2Q==

------=_NextPart_000_00D9_01C02BB0.6A79A790--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00d801c02bd1$f18b4790$7ac9010a>