The tag has no wiki summary.

learn more… | top users | synonyms

14
votes
2answers
2k views

What's wrong with my cronjob syntax, I'm trying to use a backtick (`)?

Here's what I'd like to automate: 00 08 * * * psql -Uuser database < query.sql | mail somone@null.com -s "query for `date +%Y-%m-%dZ%I:%M`" Here's the error message: /bin/sh: -c: line 0: ...
11
votes
2answers
2k views

Should I use semicolons at the end of each PowerShell statement? [closed]

I've done a fair bit of programming in C#, but then I've also written a lot of T-SQL scripts. C# requires semicolons, and T-SQL and PowerShell they're optional. What do you do for PowerShell? Why? My ...
5
votes
2answers
3k views

How to interpret the bash command “usage” syntax?

How exactly do you have to interpret the output of a commands "usage" output, in bash for example. For example, on my OS X, cp gives me usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ...
4
votes
4answers
4k views

How can I perform a syntax check on an .htaccess file in a shared hosting environment?

I have a build script (Perl) that modifies the .htaccess file when I deploy my applications. As a double-check, I'd like to be able to perform some sort of syntax checking on the created .htaccess ...
2
votes
2answers
488 views

BIND/DNS Zone meaning of “IN”

I have been reading http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-zone.html but the document raised a question. What is the meaning of IN? Is it just a class which is optional or ...
2
votes
5answers
284 views

debian bash/sh string execution

I am stuck with this piece of code here user@server:~$ TEST="ssh rsync@otherserver.example.org 'date; hostname -A; uname -a'" user@server:~$ $TEST bash: date; hostname -A; uname -a: Command not ...
2
votes
3answers
11k views

Debian network bridge configuration - /etc/network/interfaces

I'm running a Lenny Xen dom0 hosting multiple virtual machines in a routed IP setup. To get an additional private subnet, I created the bridge xenbr0 in the dom0 with the following commands: brctl ...
2
votes
1answer
109 views

Why can't I select from a table named range without using backticks?

I'm facing a problem with mysql. A query select * from range; works on mysql 5.0.22 but does not work mysql 5.1.61. but it works with backtick: i.e. select * from `range`; Kindly help in this ...
2
votes
3answers
4k views

Puppet fully-qualified parameter path error — how do I find what is wrong with my manifest and where?

I regularly but randomly get the following error message when I run the puppet client on machines (non-daemonized): err: Could not create : Parameter path failed: File paths must be fully qualified ...
1
vote
3answers
125 views

How to use the join statement in MSSQL correctly? [closed]

I am pretty new to SQL and I already read something about joins , but coudn't find out. I painted my scenario here : I want to update the Firstname of Table1 into Temp1 where the CreateTS of the ...
1
vote
2answers
75 views

What is this specific shell script statement validating?

I'm not a good Shell Script expert. Can somebody help me to understand and explain the statement [ ! -z ${TRUE:-} ] && [ ${TRUE:-} == 'true' ] &&from the following snippet. What is ...
1
vote
1answer
404 views

BASH quoting for sudo su user -c

I need to run the following command: sed -i 's/^/command="\/bin\/false",no-agent-forwarding,no-pty,no-X11-forwarding, /' ~/.ssh/authorized_keys within sudo su user -c I think I've spent about 3 ...
1
vote
3answers
583 views

Syntax error at '{'; expected '}' when using nagios in puppet

It's a big problem to me, because I'm not familiar with puppet. ERROR on the puppetmaster: debug: importing '/etc/puppet/manifests/nodes/group-1.pp' err: Could not parse for environment production: ...
1
vote
1answer
129 views

Postfix header_checks syntax (POSIX - Perl)

I am using header_checks in Postfix to rewrite my headers (for emails sent by Outlook through my server). Here is the part of the header I am trying to change : Received: from Raphasus ...
1
vote
1answer
249 views

MySQL Syntax error when trying to reset Joomla password

I'm trying to reset my Joomla admin password by executing the following code in MySQL: INSERT INTO `jos_users` (`id`,`name`, `username`, `password`, `params`) VALUES ...
1
vote
1answer
693 views

How to create a user with Puppet

I am trying to create a user with Puppet but everything I have been trying has failed. I am trying to create a user named "capistrano" that will be placed in the "www-data" group. I have done the ...
1
vote
1answer
21 views

SQL Server 2005 DROP LOGIN syntax error

This snippet of code (it's just a repeater, not the actual code I'm going to run) throws a syntax error on the DROP LOGIN command: declare @obso_user varchar(16) set @obso_user = 'BEN_VA\20362781' ...
1
vote
2answers
364 views

Yum command to downgrade packages

I need to downgrade php on a server and found the command below. Something seems to be wrong with the syntax. yum downgrade $(rpm -qa --qf "%{NAME} " | \ grep -v ioncube | grep ^php | ...
1
vote
1answer
351 views

Exchange 2010 Cmdlets for Sent Items in a Distribution group

Here is the scenario that I am in and am stuck on how to get this the correct way. What I'm looking for is a syntax that will provide me with statistics on what users have emailed "Sent" for the day. ...
1
vote
0answers
1k views

How can I set up mysql logs so that syntax errors are logged?

I've got mysql logging log_slow_queries or whatever, and had turned on all query logging for a moment before I found it to just be spammy and thus useless. How can I log only mysql queries that ...
0
votes
5answers
5k views

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 ...
0
votes
2answers
1k views

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

#<IfModule mod_headers.c> Header unset Pragma FileETag None Header unset ETag ExpiresActive On <FilesMatch "\\.(ico|jpg..)$"> etc </FilesMatch> ...
0
votes
1answer
622 views

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: ...
0
votes
1answer
61 views

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 ...
0
votes
1answer
953 views

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 ...
0
votes
1answer
98 views

mail: Cannot parse address

This is the command I use to tar my backup files, write to stdout and then upload everything to Amazon S3 with an email notification. tar -czvf - --exclude-caches /var/www | s3cmd ...
0
votes
2answers
368 views

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 ...
0
votes
1answer
166 views

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 ...
0
votes
1answer
273 views

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: ...
0
votes
2answers
504 views

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 ...
0
votes
1answer
1k views

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 ...
0
votes
2answers
117 views

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 ...
-1
votes
2answers
415 views

Please help me understand useradd example's syntax [closed]

I've been doing some research on how to add a user to the system so as to have a new ftp user and one of the examples I ran across was this: useradd -m -G users,ftp,wheel joe -s /bin/bash passwd joe ...
-1
votes
0answers
14 views

using update query with subquery in Oracle sql [migrated]

I have an update query where I am trying to update a field but for more than one record, I am trying a join but it doesn't work. Below I get multiple values that come back from the select statement ...
-1
votes
0answers
14 views

Crontab Syntax: Multiple ranges/Single Entry, Exclusions [CentOS] [duplicate]

I do development, and schedule tasks via cron for a certain client. I wish to exclude the 19th hour (7PM). I have researched it, and it seems that there is no exclusion syntax. Also there is no ...
-3
votes
1answer
92 views

what is SSH, how to learn it's syntax and [closed]

i want to know what SSH really is ? does it work with all servers ? (linux or win based) what's the reference to learn it's syntax. and is there a way to experience it on local machine ?