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
Php SOAP-ERROR: Parsing WSDL
SQL Problem
Access 2007, form datasheet view, change display property of an element based on another element in the record
Return a Char at position
return double array in Delphi call to c++
Issue with Thecus 1u4500 not booting
Microsoft Information Store stalling issues
Auto file move and rename
Asterisk 1.4 assigning outbound routes based on extension
'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type.