Questions tagged [syntax]

64 questions
0
votes
1 answer

What is wrong with my apache2 server?

I edited the file /etc/apache2/sites-enabled/000-default and then tried to restart my apache server and this error came up: Syntax error on line 20 of /etc/apache2/sites-enabled/000-default.save: unknown order Action 'configtest' failed. Here is…
Pyrason
  • 11
  • 3
0
votes
2 answers

How can I check the syntax of another PHP script in PHP before it is include()'d

In PHP I am making a kind of bot which dynamically includes a few different PHP files. Since these PHP files may change, I would like the files to be checked for syntax/parse errors before the include() or require() is run. Would this be possible?…
Dead-i
  • 3
  • 2
0
votes
1 answer

Syntax error near unexpected token `fi'

I have been trying to write a while loop bash script that will check the size of two directories, and echo that out to a text file in the www folder. After my while loop stubbornly refused to work, I decided to simplify it to make sure I could get…
DarthCaniac
  • 209
  • 1
  • 3
  • 8
0
votes
1 answer

Apache print syntax errors to console instead of logfile

Some of my apache configs are failing like this (because of a bug in control panel, but I need a workaround till this gonna be fixed): /etc/init.d/httpd start Starting httpd: Syntax error on line 30 of…
Spacedust
  • 558
  • 5
  • 12
  • 28
0
votes
1 answer

Exchange 2010 - double right brackets ( >> ) in ems every time I hit Enter

Lets say I run cmdlet such as this: [PS] C:\Windows\system32>$AllMBX = Get-MailboxStatistics -Database "SSYDrybulk? | Where-Object {$_.DisconnectDate -ne $NULL} | Select MailboxGuid, Database [Enter] >> [Enter] >> [Enter] is not typed in. It s…
MatBanik
  • 379
  • 3
  • 7
  • 27
0
votes
1 answer

Portsnap error, doesn't work anymore FreeBSD 8.2

I can't seem to run portsnap anymore, there seems to be an error and /usr/ports/sysutils/portsnap doesn't exist for a reinstallation. The error I'm getting when running portsnap is: /usr/sbin/portsnap: line 882: syntax error near unexpected token…
Sandeep Bansal
  • 125
  • 1
  • 5
0
votes
2 answers

"IfModule... in Apache 2 Fedora... Whats the use?

# Header unset Pragma FileETag None Header unset ETag ExpiresActive On etc # # php_value…
Sam
  • 403
  • 3
  • 7
  • 23
0
votes
1 answer

Cannot move folder to a subdirectoy of itself - What's going on?

O.K I am trying to do the following very simple command and it is failing as follows... mv '/home/admin/Downloads/folder1' '/home/admin/MyLibrary/MyVideos/TV/folder1/' mv: cannot move `/home/admin/Downloads/folder1' to a subdirectory of itself, …
calumbrodie
  • 182
  • 1
  • 2
  • 12
0
votes
2 answers

Cisco command wont work on syxtax checker

I'm trying to validate the building of a tool for managing Cisco ACL commands. Thing is i'm using the aclcheck sintax validator (i dont own cisco equipament) with the following command do check access-list 101 permit udp host 192.10.05.233 EQ 80…
0
votes
2 answers

Syntax checker working crazy with cisco

I'm trying to verify only two commands for cisco IOS ACL Extendend. They are: access-list 101 deny any 192.168.0.0/23 any access-list 101 permit udp 192.168.1.1 any For this i`m using a syntax checker avaliable on the internet located in…
0
votes
5 answers

Syntax error near unexpected token 'fi'

I have created a very simple script (see below) but cannot get it to run properly. I always get messages saying line 5: syntax error near unexpected token 'fi' line 5: 'fi' when I try to execute this script. #!/bin/sh rm /opt/file_name if $? -ne…
Bill Sherwin
0
votes
0 answers

Ansible Playbook

I'm trying to run a playbook with to upgrade the latest firmware on a few edge routers on my network: - name: Update External ERX with latest firmware hosts: externaledgerouters remote_user: BudAdmin tasks: - name: Update ERX Firmware …
Brian Lamb
  • 41
  • 3
0
votes
1 answer

Trying to understand Cloudformation syntax for UserData script

I'm trying to configure the UserData Property for an EC2 instance in Cloudformation and, when I look at the AWS example, it is very confusing. The example I'm looking at is from…
0
votes
0 answers

VMware vRealize Operations: super metric syntax issue

I have an issue with a super metric I am trying to build on vRops 8.6.2. The super metric is meant to be applied on esxi hosts, its purpose is to process the number of active lun paths that host should have, based on the number of datastore…
Nicolas
  • 15
  • 1
  • 4
0
votes
1 answer

Strongswan swanctl.conf parameter syntax

I am looking for exact syntax for swanctl.conf parameter syntax. I read though the swanctl.conf documentation, but there does not seem to be any exact syntax for parameters. Mainly I am looking for the exact way to specify different "proposals" We…
Dave
  • 160
  • 1
  • 7