Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Advanced Korn Question
can you tell mne what the difference is between:
> $log 2>&1 &
and
2>&1 > $log &
if tried both ways and the std err and std out go to the log both ways.
-----Original Message-----
Sent: Tuesday, March 13, 2001 3:09 PM
To: Multiple recipients of list ORACLE-L
Your syntax is incorrect, try this:
su - updater -c "/prod/exe/pos2100" > $log 2>&1 &
>>> RROGERS_at_galottery.org 03/13 1:47 PM >>>
David,
I think it is because of the ksh b.ksh you execute. The ksh is looking for
some place to direct the output to and you supply that with the 2>&1
command.
I am only quessing that is the answer because it has been awhile since I
used Unix.
ROR mª¿ªm
>>> david.hill_at_lechateau.ca 03/13/01 11:21AM >>>
I was hoping someone in the list might be able to help me understand why
this happens.
i have a script a.ksh that looks like this a.ksh
b.ksh
su - updater -c "/prod/exe/pos2100" 2>&1 $log1 & su - updater -c "/prod/exe/pos2100" 2>&1 $log2 & su - updater -c "/prod/exe/pos2100" 2>&1 $log3 & su - updater -c "/prod/exe/pos2100" 2>&1 $log4 &wait
when i run this only 1 of the background runs and the other 3 hang
but if i change a.ksh to this
everything works ok and all 4 jobs go into background and run fine
coudl someone tell me why this happens
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: david hill INET: david.hill_at_lechateau.ca Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ron Rogers INET: RROGERS_at_galottery.org Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Gene Sais INET: Gsais_at_co.palm-beach.fl.us Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: hp INET: hp_at_lechateau.ca Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Mar 13 2001 - 16:39:25 CST
![]() |
![]() |