The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot redirect ouput????? minifish Shell Programming and Scripting 3 02-20-2008 09:15 AM
Wrong Ouput when using printf under SFU ilak1008 Windows & DOS: Issues & Discussions 5 06-02-2007 12:20 AM
Identifying same character and ouput the sum Raynon Shell Programming and Scripting 12 03-21-2007 08:59 PM
Red Hat - ouput capture juxtaman UNIX for Dummies Questions & Answers 3 04-10-2003 07:31 AM
Locating files and directing ouput klannon Filesystems, Disks and Memory 2 03-10-2002 09:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2005
Registered User
 

Join Date: Mar 2005
Location: Hyderabad, India
Posts: 22
capture the ouput!

Hi,

my perl script is calling another external java program. The Java in turn prints out a string. how can I capture the string.
------------------
#!/usr/bin/perl

print "Content-type:text/html\n\n";

use CGI;
$query = new CGI;
$theCookie = $query->cookie('someCookie');
$user = system("cd /some/location;java myJavaClass $theCookie");

--------------------------
Java is writing the string to the browser. I want to store that string to a variable so that I use it in perl

Thanks in advance
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0