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
MSDN license: can users perform UAT
directoryInfo.GetFiles() is slow in .net.
kvm cables for dell poweredge server
Change the powershell script to write to a file rather than updating to the computer object.
USB Device Not Recognized?
Why does my memory say Installed memory RAM 24.0 (16.0 GB Usable) ?
BULK UPDATE
Oracle qry on system tables
Please wait while Windows configures Crystal Reports Release 2
Hi - cisco 1840 - what is the default password please - http or via console