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
Page Not Found" when trying to connect to the BlackBerry Administration Service
Network issues loading company web-site
xcode: iPhone: How do I port this Java into Objective C
Jython Script - Update WebSphere JVM System Properties (jvm custom properties)
Restoring old mail
Looking for NETWORKDAYS VBA Equivalent without Analysis ToolPack or Analysis ToolPack VBA
pop up panel
Active Directory User
VB.NET How do I show data from databse - Chart
how to stop sql execution on refreshing a page or closing a browser