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
which is the best editor for oracle ?
Websense - Block Internet Access - Except for Updates
VB.NET simple SendMail program error: System.Net.Mail.SmtpExcept
ion: Failure sending mail
How to find out what version of remote OpenSSL server is running?
css positioning for image caption - image height changes but container is absolute
Service Tag
How to copy a 150 Gb database across the country?
How do I embed ajax calendar extender in asp.net gridview correctly?
Move jpg files from file server and create shortcut
Need to translate my first string in ASP.NET