Jump to content

Help with syntax


MetalSmith

Recommended Posts

Hi all!

 

The $bridge variable is not getting passed while it is contained in the line below:

 

Maybe I don't have the right brackets around it? I want the result to say Bridge1

I think it's because its a WshShell command. Any ideas?

 

 

 

 

$bridge = 1;

 

if ($refresh == 1)

 

{

 

$WshShell = new COM("WScript.Shell");

$WshShell->Run('"C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aastra\putty.exe" -load "Bridge$bridge" -l root -pw password -m "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aastra\list-56201.sh"');

 

sleep(2);

 

}

 

Link to comment
https://forums.phpfreaks.com/topic/187877-help-with-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.