Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING

Status
Not open for further replies.

dreamaz

Technical User
Dec 18, 2002
184
CA
Hi,

can someone please tell me whats wrong with this, i keep getting the above error

// Build the local command executed on this server.
$cmd = $this->ssh_cmd . ' -n -F '.$config_file.' -i '.$sshkey.' ';
$cmd .= $this->user . '@'.$this->host. ''.$command.'' > '/dev/null &';


Problem is with my second $cmd something wrong with the syntax? or my ''

Thanks
 
Double quotes around $command in the second line

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top