Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: harishram
  • Order by date
  1. harishram

    inconsistent output for java process thru perl

    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; }...
  2. harishram

    Making perl variable visible to shell

    Thanks for your reply max1x. Can you give me an example of the second option please, i did not fully understand it. what is the meaning of expanding $vfy_status ?
  3. harishram

    Making perl variable visible to shell

    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.
  4. harishram

    I/O redirection in perl

    Hi Trojan, Thanks for the solution. It worked fine..but had a question..In the file open command what is the significance of "|" at the end. Thanks
  5. harishram

    I/O redirection in perl

    Hi dmazzini, Thanks for ur reply. Let me give a clearer picture of what i was trying to do..i am trying to execute a program CreateTemplate with $TRNXID as a parameter and i want the output to go to the file mytest.out. system("/usr/bin/java CreateTemplate -tranId $TRNXID > mytest.out"); The...
  6. harishram

    I/O redirection in perl

    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...

Part and Inventory Search

Back
Top