Folks,
This is my code snippet. I am running a java process and forwarding the output onto a file.
$mycommand1 = "java -jar cmd.jar -job status -txnid $tid";
$tpid1 = open(OPNTXNPIPE, "$mycommand1 2>&1 |");
open (OUTPUTFILE,">out")
while($line = <OPNTXNPIPE> )
{
print OUTPUTFILE $line;
}...
Folks i have a question.
$vfy_status = `grep ^use executecommand_withoutarguments.pl`;
$vfy_suc = `print $vfy_status| awk '{print $1}'`;
print $vfy_suc;
i am not able to export the perl variable $vfy_status, how do i overcome it and make perl variables visible to the shell.
thanks for ur help.
Hi,
This piece of code works fine..the output is redirected correctly to mytest.out
#!/usr/bin/perl
$TEST="2005";
system("echo $TEST > mytest.out");
But the below piece of code does not work..the output file mytest.out is empty and display comes on the screen.
Assumption: The file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.