logo       

DM Numeric custom script monitor: msg#00636

sysutils.tivoli.general

Subject: DM Numeric custom script monitor





Hallo,


> there is a difference between `cat file` and RESULT=`cat file`

to follow up on this once again:
this is an idiom often seen in perl scripts where people
do not understand or ignore the warning message
"useless use of a void constant". In perl this style of
programming is harmless, but NOT IN SH.
In perl this costs performance, but is not dangerous. perl collects
all of the output in memory, then throws it away.
The more economic style would then be using "system(xxx)" if you're
not interested in the output, only in the exit code.

Tschau...Thomas
--
"Do you wanna be a legend or a passing footprint on the sands of time?"
Senior Consultant, Tivoli Certified Enterprise Consultant + Instructor
santix AG, www.santix.de, info-/JKUMw0Y9jazQB+pC5nmwQ@xxxxxxxxxxxxxxxx, fon
+49-89-321506-0, fax -99
Weihenstephaner Str. 4, D-85716 Unterschleissheim, GSM +49-171-4416678




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise