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
Netbackup 654 : How to import a non netbackup tape and read data from it
User has 6GB PST file (archive.pst), how do I break into smaller pieces?
Certificate Authority 2003, 2008 Enterprise Root CA
UI Design - How to mockup .net application?
No output from an echo
how to export the SSL certificate from Microsoft exchange 2003 in the .p12 format for mobile phone HTC Desire
Shares unavailable
vinegar and bugs
How to determine eclipse version?
Trigger destroys previous trigger