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
How to disable Security Alert box in windows 7?
Backup exec 2010 hangs on System State on Server 2008.
Can you tell what Server a Backup Exec agent was pashed out from
How do I run a stored procedure and ignore the returned output in Management Studio?
Script to enable folder auditing
Configuring Wireless Computer Authentication with Certificates in Windows 7
passin a value from one jsp to other
SharePoint - single user can't access Rich Text Editor
howto eliminate duplicates in Exchange .ost file
how to transfer apps from my iphone to my itunes library