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
Command to attach the database sql database file MS SQL 2000 desktop edition
Increment Value
How do i verify an age element using javascript?
sql job with proxy agent failed to execute
Cannot open xlsx attachement Outlook 2007
PHP QUESTION - OSCOMMERCE - How to remove short description underneath products in Oscommerce 2.2
Dell PowerEdge 2800 server failure - RAID ADAPTER unrecoverable error
How to Stop Procedure Running after Message Box Displayed
get 550 5.7.1. Unable to relay for specific domains....
Resource Booking in Outlook 2003/07