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
Login script error. Access Denied
HP SAN drive fail
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
Sonicwall TZ 100 configuration
vbscript create shortcut script, not completing script, no errors, code attached
Password Protect Back End of an Access Database
Cisco ASA questions
Walkie-Talkie recommendations
Dell Precision BIOS
How do I access RDWEB on SBS 2008 Domain?