swartzieee has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl print "Making Recommended Logging Changes\n"; #chdir "/opt/tivoli/itcam/was/DC/"; @logging=`find . -name cynlogging.properties`; chomp @logging; print @logging; foreach $prop (@logging) { open (FILE,"<$prop"); @array=<FILE>; close(FILE); foreach (@array) { print @array; $_ =~ s/DEBUG_MIN/WARN/g; } } ####### print "Disable Aspect J And Enable BCI\n"; chdir "/opt/tivoli/itcam/was/DC/runtime/"; @disable=`find . -name toolkit_custom.properties`; foreach $props (@disable) { open (FILE, ">> $props"); @array1=<FILE>; foreach (@array1) { print FILE "am.camtoolkit.gpe.bci.allow.new.fields=true\n"; print FILE "com.ibm.tivoli.itcam.toolkit.ai.createRemeberedObjectField +=true"; $_ =~ s/#am.comtoolkit.gpe.probifier.factory=com.ibm.tivoli.itcam.tool +kit.ai.bci.engine.BCIEngineProbifierFactory/am.comtoolkit.gpe.probifi +er.factory=com.ibm.tivoli.itcam.toolkit.ai.bci.engine.BCIEngineProbif +ierFactory/; } close(FILE); } ####### print "Recycle Configured JVM's\n"; exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open Files in Unix
by ikegami (Patriarch) on Oct 08, 2008 at 01:27 UTC | |
|
Re: Open Files in Unix
by oko1 (Deacon) on Oct 08, 2008 at 03:29 UTC | |
by JavaFan (Canon) on Oct 08, 2008 at 06:44 UTC | |
by oko1 (Deacon) on Oct 08, 2008 at 16:50 UTC | |
by JavaFan (Canon) on Oct 08, 2008 at 19:11 UTC | |
| |
|
Re: Open Files in Unix
by superfrink (Curate) on Oct 08, 2008 at 19:16 UTC | |
by swartzieee (Initiate) on Oct 08, 2008 at 20:04 UTC | |
by blazar (Canon) on Oct 14, 2008 at 17:55 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. | |
| A reply falls below the community's threshold of quality. You may see it by logging in. | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |