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
VBscript Help for a Newbie trying to pull AD Computer Info into Excel 2007
Installing PHP XP (IIS 5.1)
Move Mailbox Powershell Script (sending Welcome e-mail HTML format)
No Windows machines can print in Mixed Network - Spooler Subsystem Closes
basic quadratic question
Is SQL Server 2005, 2008 free?
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
Lens error, restart camera error on Canon Ixus 60
Unable to view PDF files in a web browser
SAP RFC returning Invalid Data Type