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
SPContext.Current is returning null in the "SPItemEventReceiver" event handler.
Pivot Table syntax error
Alternative to a cursor
Outlook 2007 - Auto Create Distribution List
Better Search - Full-Text Indexing?
java get utc date/time
Office 2007 Excel cells appear blank
Script Conflict
symantec backup exec system recovery 8.5 hangs the server and restarts it,
Error installing Radeon 7k into HP DC5700