Microsoft
Software
Hardware
Network
Question : Using Bash command in Perl Script
Hi All,
I want to use Bash Command in shell script. The Bash command is below. Can someone suggest a way i could have the code in Perl. The values in the bash command are the variables which comes off the perl script. These are the variables which Perl reads from a config file i.e $Instanceid $region
export ec2running=`$EC2_HOME/bin/
ec2-descri
be-instanc
es --region=$region $instanceid | grep INSTANCE | tr '\t' '\n' | grep running`
Answer : Using Bash command in Perl Script
$ENV{ec2running}=join' ',grep /running/,map{split/[\t\n]
/}grep /INSTANCE/,`$EC2_HOME/bin/
ec2-descri
be-instanc
es --region=$region $instanceid`;
Random Solutions
Exchange 2010 and ActiveSync
delphi Run once
Exporting X509 published certificate information
PC died while under my care. Fair Solution / Proposal to Client
Scan FreeBSD Web server for virus
Excel 2007 viewer error in Windows Server 2008 R2 terminal server (crash)
Will esxi 4.0 support 2 sun processors (x6379a) on a sunfire x4450 ?
Dead harddrive - clicking sound
Cisco 2960 Crashing - Restarting at random
Monitor