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
Detect dual monitor via javascript
visual studio 2005 express
asp.net, c#, drop down list error
Info@... users Not receiving email
HP dl360 G6 Raid Driver for Windows 2008 64-bit
Email Marketing Reseller Solution
how do i create a vfp exe which i can call with command line parameters
Will there be a 13" Macbook with an iCore processor anytime soon? Safe to buy C2D?
having trouble installing SP3 for Exchange Server 2007 before installation begins
How to install Solaris 10 in 2 disks at the same time or 4 disks using zfs, need good documentation on zfs