Syntax refers to the rules of programming languages which stipulate how code is to be arranged so that the structure is syntactically correct and can be executed successfully in the particular framework of those languages.

learn more… | top users | synonyms

1
vote
1answer
10 views

QML: How to display a “<” character in a richTextBox?

The code in question: description.insert(0,"<tr><td><H1> ---Less-Than-Sign-Here--- </H1></td><td><font face='Ubuntu'size='3'color='#f37420'> ...
0
votes
1answer
17 views

using rsync between 2 ubuntu servers having a folder with SPACE in the name, how to make it work?

I used rsync alot, but never found out how to copy a folder which had a space in the name. like this : sudo rsync -rv myuseraccount@192.168.xxx.xx:/data/svn/my folder /data/svn/ i tried already ...
0
votes
1answer
89 views

Turn off display after n seconds in shell script

#!/bin/sh ( time=$( zenity --scale --min-value=0 --max-value=20 --text="Pls Select Time in(s)") ) && sleep $time && xset dpms force off I wanted to turn off display after n seconds, ...
1
vote
0answers
42 views

Syntax Error while running an install.sh file

I have a problem with a .sh file. This file will install a. Py file in the same folder! The file looks like this: #!/bin/bash/ python install.py "$ @" Can somebody pleace help me?
0
votes
1answer
1k views

SSH scp between Ubuntu Server 12.04 and Windows failing - (prob syntax)

I was trying to use scp to copy files from my Windows system to my Ubuntu server, and vice versa. As you know, when defining a path in Windows, "\" must be used instead of "/", and a "C:" at start. ...
10
votes
1answer
3k views

How to solve “Extra junk at end of file” when using apt?

I'm trying to configure some proxies for a guest virtual machine and now I'm getting: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file The content of the ...
0
votes
1answer
95 views

Why won't my script work?

umm my script isn't working and I don't know why, it gives me the error "update1.run: line 187: syntax error: unexpected end of file" Here's my code http://pastebin.com/4W4AwuY5 I would really ...
0
votes
1answer
84 views

Question about this shell command

I am new to Ubuntu and learning how to use shell. Would someone please tell me what this command does: sudo sh -e ~/Downloads I know sudo sh will execute all commands in the shell as sudo. What is ...
0
votes
0answers
25 views

MySQL 5.5 log in problem

I just downloaded the MySQL 5.5 for my Ubuntu 12.04 platform. When I try to login using the command mysql -u root -p racha2013; the latter being the password it reads on the screen wrong syntax please ...
1
vote
0answers
1k views

Xerox Work center JCL syntax error/ Printing error (016-749)

Its long since Xerox workcenter 5225 is not working with my ubuntu 32 bit. The new error i am receiving is that says JCL syntax error. Still gnome in ubuntu tells me printing is successful but it ...
0
votes
0answers
859 views

ubuntu 12.04 pre-compiled binary syntax error: “(” unexpected

I'm trying to run a pre-compiled executable (.x) file but get the error trace.x: 1: trace.x: Syntax error "(" unexpected The machine I'm trying to run on is a relatively fresh install (<1 ...
8
votes
2answers
1k views

meaning of “'” (apostrophe) in terminal commands

For some weird reason, I tried "'" as word separator in identifiers, as in: $ export foo'bar=1 > > ^C $ The result is as shown above, id est the prompt changes to ">" and the system ...
0
votes
1answer
478 views

Syntax error on python 2.7.3

I am trying to perform a QSTK related task on python2.7.3 but ending up with syntax error [Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "copyright", "credits" or ...
1
vote
1answer
155 views

sudoers syntax different for server vs desktop?

Is there a difference in syntax between the server and desktop ubuntu 12.04 distro? If so could I get help rewriting this line to be valid for the desktop env? user1 ant =(user1) NOPASSWD: ...
0
votes
1answer
265 views

How do I solve this “unexpected '}' syntax error” in my bash script?

I have a piece of code that has some serious issues and I was hoping to get it solved soon but no one has offered any help. I thought I'd try some Ubuntu users since this is the OS running the script. ...
0
votes
1answer
321 views

Is there a difference between the 'acer-wmi' and 'acer_wmi' drivers?

Is there a difference between drivers acer-wmi, and acer_wmi? Sometimes on my computer I see the driver acer-wmi and acer_wmi, they are also both quoted in forums interchangeably.
0
votes
1answer
415 views

Iptables rule for server accessed remotely via DHCP

Sorry to ask this question - but I have been browsing forums and threads on this subject and seem to confuse myself more than actually getting any clarity. All I need is a short and concise answer for ...
4
votes
3answers
2k views

Is the command line structure the same for Linux and Ubuntu?

I'm new to the Linux world. I'm curious to know if the command line syntax is the same between Linux and Ubuntu?