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
E72 - How to make email work without activating data services?
SAP Requisition Total Amount
If table does not exist then
life of flat screen monitors
I want to make Liberty reserve API
Cannot logon to Windows XP
SBS 2008 - STOP c00002e2
xp pro machine as print server bt cant print from windows 7 PC
Could not attach database in sql server 2005 in Windows 7
COM Interfaces in .NetQuestion: