I have to maintain a perl script, and encounter the
following section: can anyone help me to understand
what is the purpose of ". 2>&1 |" ? This is a AIX
machine. Thanks.
unless (@errors) {
open(FILEHANDLE, "$PATH_TO_WSADMIN -f $tmpFile
". ' 2>&1 |');
while () {
if
I tried to do a change directory and then do a tar of
the directory:
My program:
system("cd /usr/apps");
system("tar -cf tarfile.tar DDA/*");
It looks like the cd command does not work ?
Thanks in advance.
__
Do You Yahoo!?
Send FREE video
The Unix command is: `cp -ip $file1 $file2`. I needed
to know if the cp operation is successful. I tried
$result = `cp -ip $file1 $file2`;
$result does not contain any value after the execution
even when $file1 does not exist.
How can I find out if the 'cp' operation is successful
or not ?
Thank
I have a character string that looks like:
{/Node:sys1/Application:test appl/
/Node:sys1/Application:test app2/
/Node:sys2/Application:new name/
{/Node:sys2/Application:other name/
/Node:sys2/Application:other name2/
I cannot figure out how to write a reg-exp to parse
them into strings such as:
I have a input string of ..{}..{..}...,
I need to get the output in an array that contains
only: {} {..} character strings.
I tried:
$instr1 = "111{first first}222 333{second}444";
$_ = $instr1;
@outstr = m/{.+}/g;
@outstr has a value of {first first}222 333{second};
I would li